Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
PHP Programming

PHP 7 Ready For Release (softpedia.com) 159

An anonymous reader writes: After a long wait web developers can finally start migrating their code to PHP 7. The new version comes with minimal syntax modifications, and is more focused on improving performance and upgrading PHP's core interpreter. Softpedia reports: "As mentioned above, PHP 7 is focused on speed, and benchmarks carried out over the past few months, have shown it to be almost twice as fast as older PHP 5.x releases, and neck in neck with Facebook's HHVM project, a Just-In-Time compiler for PHP code." A full list of new features is available here.
This discussion has been archived. No new comments can be posted.

PHP 7 Ready For Release

Comments Filter:
  • by Anonymous Coward

    neck and neck, I think.

  • PHP7 Performance (Score:5, Interesting)

    by darkain ( 749283 ) on Wednesday December 02, 2015 @07:53PM (#51045357) Homepage

    I've been benchmarking the PHP 7 RCs against HHVM and PHP 5.6 for quite some time now with my own framework. I'm still perplexed as to why they are claiming it is faster than HHVM. Maybe in some specific benchmark? On my in-house framework, HHVM pushes nearly twice the requests-per-second performance compared to PHP 7. However, on the command line, PHP both 5.6 and 7 have a significantly faster startup time, but this point is mostly irrelevant for web servers.

  • by Anonymous Coward on Wednesday December 02, 2015 @07:59PM (#51045425)

    Unlike slashdot's normal habit of running behind the times with news stories, this one is too early.

    PHP 7 is slated for a full release tomorrow.

    Good job guys....

    • PHP 7 is slated for a full release tomorrow.

      Yeah but I won't be able to use it until 2020 because all the commercial hosting servers are still running PHP 4.

      • by gmack ( 197796 )

        You mean there are downsides to $6.00/month hosting packages? Who knew?

        • You can get a virtual private server for about $15 a month and run whatever version of whatever you want on it. There's little advantage to going with a shared host for $6 unless you just want to do something extremely basic.

          • by gmack ( 197796 )

            Yes but then you have to know how to keep it up to date or it's yet another zombie waiting to happen. I'd rather most people went with a higher quality hosting service.

            Also, $15 is expensive. I pay a lot less than that on OVH.

  • Where's our 64-bit support?..
    • it's there on Windows

      • "The x64 builds of PHP for Windows should be considered experimental, and do not yet provide 64-bit integer or large file support."
        - [php.net]

        Kind of important when dealing with cloud servers and big data transfers.

  • Cue the haters (Score:5, Interesting)

    by JustAnotherOldGuy ( 4145623 ) on Wednesday December 02, 2015 @09:31PM (#51046143) Journal

    Cue the PHP haters to flood this topic with endless criticisms and loads of "it's SO awful" stories about how terrible PHP is.

    I've said it before and I'll say it again: I like PHP, and coding in it enabled me to make a shitload of money over the last dozen years or so. It still makes me money every single day, and all at a cost to me of almost nothing. Linux, Apache, mySQL, and PHP -the classic LAMP stack- has been very, very good to me.

    Hate on it all you want, but working alone in my little home office I learned and used PHP to make more than enough money to buy a nice home, travel the world, support my family, and live a very comfortable life.

    Is it the "best" language? I have no idea, but it's good enough for me and that's what counts.

    So please, feel free to tell me how terrible and horrible it is. :)

    • by cshark ( 673578 )

      I thought most of the PHP haters were Microsoft Visual Studio guys.
      I wonder. Do the evangelists still roam the internet trash talking any language not approved by the big M?

      Or did that go the way of the dodo when Microsoft decided to make hell freeze over by releasing Visual Studio for Linux?

      I must admit, the hate boards have been rather quiet for the last year or two.

      • I wonder. Do the evangelists still roam the internet trash talking any language not approved by the big M?

        I have no idea. Frankly, I couldn't care less what Microsoft likes or doesn't like. Or more accurately, I just hope they stay away from anything in the LAMP stack so they don't fuck it up.

        I can see it now: "Microsoft PHP(tm)- from the same great team that brought you Clippy and Microsoft Bob!"

        And of course it would be just incompatible enough with the real PHP so as to cause lots of fucky little problems that would be practically impossible to track down. But thankfully they don't seem to be interested in i

        • by cshark ( 673578 )

          And of course it would be just incompatible enough with the real PHP so as to cause lots of fucky little problems that would be practically impossible to track down. But thankfully they don't seem to be interested in it at this time- they're too busy fucking up Skype to bother with something like PHP. Maybe when they're done ruining Skype they'll have time to make a proprietary, retarded version of PHP.

          Wait, you mean like, Microsoft is going to develop HHVM?

    • Just because you made a fortune selling manure shoveling shit doesn't mean it doesn't stink.

      PHP, like Javascript, are complete clusterfucks written by people who don't have a fucking clue how a good language is designed.

      • Just because you made a fortune selling manure shoveling shit doesn't mean it doesn't stink.

        So what? I still made a fortune. :)

        -

        PHP, like Javascript, are complete clusterfucks written by people who don't have a fucking clue how a good language is designed.

        And guess who doesn't care? (Hint: it's me!)

        The point is, Mr Language Snob, that I really don't give a flying fuck how much you hate PHP and Javascript.

        PHP and Javascript enable me to live in a nice home and drive a nice car and go on vacations with my wife whenever and wherever the fuck I want. You only wish you could live so well, lol.

        So by all means- be as smug as you want in your dreamy little Language Superiority Fantasy land. Just make sure you do your job and wipe

        • > So what? I still made a fortune. :)
          If you're not part of the solution you are part of the problem, but I see all you care about is money. /sarcasm Who needs quality when we can fuck over our customers with insecure crap!

          > PHP and Javascript enable me to live in a nice home and drive a nice car
          Here's your cookie kid. I could sell drugs and have a nice home and nice car too.

          > You only wish you could live so well, lol.
          Typical bogus Strawman argument that has _nothing_ to do with how shit PHP is.

          All

          • If you're not part of the solution you are part of the problem, but I see all you care about is money.

            Oh no, I care about my wife and my son and my businesses, and I care about my hobbies and I care about if it's going to be too hot in Thailand when we go there in the next few weeks and I care about my neighbor who's not been feeling well lately, and so on and so forth. There's lots of things I care about besides money. The money just allows me the freedom to care a little bit more effectively. :)

            -

            I could sell drugs and have a nice home and nice car too.

            Yes, but that would be illegal and what I do isn't illegal. Besides, I doubt a hoser like you would last 5 minu

      • PHP, like Javascript, are complete clusterfucks written by people who don't have a fucking clue how a good language is designed.

        To be fair, all the common scripting languages suck. C#/VB.net is actually a fairly decent "compiled" language (ignoring the MS API's and environment).

        But, the common scripting/dynamic languages out there all suck in different ways. (I suppose a lot of it is subjective.)

        Here are the main features I'd like to see in a "production" dynamic language:

        * Non-type-tag-based type system. W

      • by amacide ( 12270 )

        Bad day? Your rage, anger & elitism stinks. Haven't posted in a decade but to say that.

        Agree with OP. 20 years now I've made a great life from PHP, Linux, MySQL, blah blah, and what you may consider other "manure".

        Right tool for the job. A lot of IT is shoveling manure, so why not use PHP? ;-)

    • Is it the "best" language? I have no idea

      We know the answer to this one.

    • Cue the PHP haters...[but] coding in it enabled me to make a shitload of money over the last...

      Job security and "good language" are very different things, and perhaps inversely related. The screwier the language, the more time it takes a coder to work with it. More paychecks for you, perhaps, but the company could be paying more compared to a "good" language.

      It's like asking an auto-mechanic if a Ford Escort car is any good. Good to own, or good for his wallet?

      I'm not judging PHP here, just questioning the

      • I'm not judging PHP here, just questioning the perspective of your metric.

        Ii understand. My metric is pretty real-world based, that is, does it make me money? And the answer is "yes".

        I'm willing to overlook or ignore a lot of other metrics when it comes to putting food on my table or supporting my family.

        Sometimes "good enough" is good enough. For me, PHP is certainly "good enough". None of its bugs, warts, or annoyances (of which there are plenty) make me lose one minute of sleep.

    • I develop some systems in PHP because it is necessary for the company (all the systems in PHP that I work are legacy of several years), but I will never do a new system in a language that is unable to save the state of things between a request and another without requiring hacks like putting lots of things in the user session... PHP is shit to develop information systems, get over it.
      • ...but I will never do a new system in a language that is unable to save the state of things between a request and another without requiring hacks like putting lots of things in the user session

        Well, good for you. I'm glad that you let a consideration like that drive your choice of language and development path. I, on the other hand, have stuff to do and PHP lets me get it done. I don't really care, because as I've said repeatedly, it makes me quite a bit of money and keeping my family fed is far more important to me than some heinous blather about what it does with user sessions.

        PHP is shit to develop information systems, get over it.

        Sure it is, but it's made me a shitload of money, a concept you seem to have difficulty grasping. Lil' ol' me, working

        • It is not "snobbery", my dear moron... Recently I could not attend a change requested by one client because of the PHP can not keep something analogous to a singleton between HTTP requests, and I will stay only in my most recent problem specifically caused by the language. And I do not fucking interested if that crap gives you a lot of money (if I can take your word seriously about it, I must say), it is still a shitty language to make proper information systems.

          And if you are more of those with serious
          • dammit, missing [/ b] after "interested"
          • It is not "snobbery", my dear moron...

            It's snobbery or elitism, take your pick. Why you feel compelled to whine about a particular language is of no real interest to me. Feel free to snivel all you want.

            By the way, what language have YOU written that's become incredibly popular and runs on practically every platform in existence? What language have YOU written that's in use on hundreds of millions of web sites?

            Recently I could not attend a change requested by one client because of the PHP can not blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah....

            Yeah, sure, whatever. Guess it sucks to be you, forced to use a language that raped your mom, shot your dog, ate all your ice cream and

      • by gmack ( 197796 )

        This problem is inherent to the http protocol itself. It is simply not possible to store state when the connection is designed to drop between requests.

        • I know that very well. The detail is that if you are using Java for example, you can create system parts that remain active between requests can be shared between them. With PHP you can not do this, each request involves the entire creation (and subsequent destruction) of the entire environment
    • by prefec2 ( 875483 )

      The arguments on PHP noted in http://eev.ee/blog/2012/04/09/... [eev.ee] are valid point which show that as a language and framework PHP is a mess. This has nothing to do with hate (even though the post sounds like that), it is an honest criticism of the language and framework.

      However, if it serves you to build software with PHP, as you have clients who want that, then this is totally fine. Obviously your customers are willing to pay a lot more for development time than necessary. Or you are implementing rather smal

      • The arguments on PHP noted in http://eev.ee/blog/2012/04/09/... [eev.ee] are valid point which show that as a language and framework PHP is a mess.

        Yes, PHP has lots of problems, and I couldn't care less. It works very well for me and in my world that's where the rubber meets the road. Sure, PHP has a ton of warts, etc etc etc, and the fact is that I don't care one bit.

        -

        However, if it serves you to build software with PHP, as you have clients who want that, then this is totally fine. Obviously your customers are willing to pay a lot more for development time than necessary.

        The only client I have is me. I build what I want, when I want, the way I want. And so far I've done pretty damn well. I don't know if I'd say that I've been a "smashing success", but I will say that I've done damn well. As I've said, PHP has enabled me to live quite comfortably, travel

      • by dgatwood ( 11270 )

        Most of PHP's quirks are because it does not abstract you very far from C. And I know the author claimed that this wasn't a valid point, but it really is. PHP is an interpreted C with mandatory sigils (dollar signs) and basic support for classes. Every release seems to move it even closer to C, because that's the language that a lot of people know and are comfortable working with.

        What makes PHP crucially different from C is that it is an interpreted language, which means you don't have to recompile and

        • The cause of the mess is most likely also known to the author of the blog post. Still it is not a good language design and that is what all the critic is about.

  • Erlang is the shittier man compared to PHP and is sooo kewl with this new version of Erlang called "Outlaw Techno Bitch!?" It's the new trend with your NoSQL database

    See all the details here [youtube.com]

    • by cshark ( 673578 )

      I'm too good for Erlang. I only code in Golang, Rust, and other languages nobody uses.

  • by swm ( 171547 ) <swmcd@world.std.com> on Wednesday December 02, 2015 @10:07PM (#51046367) Homepage

    So I just...uhhh...happened to be on this site called imagefap.
    They have a banner on their front page advertising for PHP devs.
    And I couldn't help thinking that someone has finally found an appropriate use for PHP...

  • I started working in php when version 3 came out.
    I feel like I've really grown as a programmer since then, and I've done my best to stay on top of the new features and practices in subsequent versions of php.

    Reviewing the new features for php 7, I have to say that I'm excited about the strong typing features, especially. HHVM was appealing because they got there earlier, but it's nice to see the main branch of php getting to a place where everybody agrees that statically typed code is a good idea.

    I may not

  • by Max_W ( 812974 ) on Thursday December 03, 2015 @03:40AM (#51047561)
    Some PHP 5 functions do not work correctly with UTF-8 encoding of Cyrillic alphabets. There is usually a work-around. Still I am curious if there will be some updates of Unicode support in PHP 7?
  • The tag was made, but tags can change. no official release statement has been made yet.

I tell them to turn to the study of mathematics, for it is only there that they might escape the lusts of the flesh. -- Thomas Mann, "The Magic Mountain"

Working...