3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Test $var"; } class foo { var $arr = array("test"); /*function test($var) { echo "Test $var"; }*/ } class moo { static public function test2(){ echo "test2"; } } $a = new foo(); var_dump($a); $a->arr[0]("testvalue"); /***************************/ $x[0] = "test2"; moo::$x[0]();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZadYX
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   NEW                                              $2      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   28     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   29     6        FETCH_OBJ_R                                      ~6      !0, 'arr'
          7        FETCH_DIM_R                                      ~7      ~6, 0
          8        INIT_DYNAMIC_CALL                                        ~7
          9        SEND_VAL_EX                                              'testvalue'
         10        DO_FCALL                                      0          
   32    11        ASSIGN_DIM                                               !1, 0
         12        OP_DATA                                                  'test2'
   33    13        FETCH_STATIC_PROP_R          unknown             ~10     'x'
         14        FETCH_DIM_R                                      ~11     ~10, 0
         15        INIT_DYNAMIC_CALL                                        ~11
         16        DO_FCALL                                      0          
         17      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZadYX
function name:  test
number of ops:  5
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      'Test+', !0
          3        ECHO                                                     ~1
    7     4      > RETURN                                                   null

End of function test

Class foo: [no user functions]
Class moo:
Function test2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZadYX
function name:  test2
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   ECHO                                                     'test2'
   24     1      > RETURN                                                   null

End of function test2

End of class moo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.12 ms | 1396 KiB | 15 Q