Announcement

Collapse
No announcement yet.

PHP 7.0 Beta 1 Brings Better Performance, New Language Features

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP 7.0 Beta 1 Brings Better Performance, New Language Features

    Phoronix: PHP 7.0 Beta 1 Brings Better Performance, New Language Features

    The first beta of the upcoming PHP 7 was released a few days ago. PHP 7.0 Beta 1 marks the point that this major update to PHP is feature-complete...

    http://www.phoronix.com/scan.php?pag...PHP-7.0-Beta-1

  • #2
    Nice with more exceptions, it will make the language feel more modern and easier and nicer to develop with. It sucks have to check if the return value is -1 or things like that.

    Comment


    • #3
      Still no support for annotations.

      In C#
      Code:
      [Authorize]
      public string Foo() {}

      In Java
      Code:
      @Authorize
      public string Foo() {}

      In Python
      Code:
      @Authorize
      def Foo():
          return 123
      Last edited by uid313; 15 July 2015, 02:38 PM.

      Comment


      • #4
        Originally posted by uid313 View Post
        Still no support for annotations.

        In C#
        Code:
        [Authorize]
        public string Foo() {}

        In Java
        Code:
        @Authorize
        public string Foo() {}

        In Python
        Code:
        @Authorize
        def Foo():
        return 123

        What is this useful for (ie. what's the difference with a comment)?

        Comment


        • #5
          Here is a presentation by Rasmus and he also shows some benchmarks of PHP 7 against HHVM 3.7, and PHP 7 could be faster than HHVM in some scenarios, https://youtu.be/eBJdi_h_rKM?t=24m6s

          Comment


          • #6
            Well, 5.5.4 had serious issues with http output protocols. Have they fixed that, or do I need to fix it again? I didn't have a chance to push the fixes back into the base code when I was at Nokia.

            Comment

            Working...
            X