3v4l.org

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

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

End of function hello

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.55 ms | 477 KiB | 8 Q