3v4l.org

run code in 300+ PHP versions simultaneously
<? PHP_VERSION() < "7.0.0" or exit; class A { static function hello() { echo "Hello World\n"; } } $y[0] = 'hello'; A::$y[0](); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oIGDd
function name:  (null)
number of ops:  13
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'PHP_VERSION'
          1        DO_FCALL                                      0  $1      
          2        IS_SMALLER                                       ~2      $1, '7.0.0'
          3      > JMPNZ_EX                                         ~2      ~2, ->6
          4    > > EXIT                                                     
          5*       BOOL                                             ~2      <true>
   11     6    >   ASSIGN_DIM                                               !0, 0
          7        OP_DATA                                                  'hello'
   12     8        FETCH_STATIC_PROP_R          global lock         ~4      'y'
          9        FETCH_DIM_R                                      ~5      ~4, 0
         10        INIT_DYNAMIC_CALL                                        ~5
         11        DO_FCALL                                      0          
   13    12      > RETURN                                                   1

Class A:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oIGDd
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'Hello+World%0A'
    9     1      > RETURN                                                   null

End of function hello

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.62 ms | 1394 KiB | 13 Q