3v4l.org

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

End of function hello

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.22 ms | 1394 KiB | 15 Q