3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { var $test = 'test'; } $test = array(new Test()); test($test); function test($test) { $test[0]->test = 'nope'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hpYJ1
function name:  (null)
number of ops:  8
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~3      $1
          3        ASSIGN                                                   !0, ~3
    8     4        INIT_FCALL_BY_NAME                                       'test'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   14     7      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hpYJ1
function name:  test
number of ops:  5
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   13     1        FETCH_DIM_W                                      $1      !0, 0
          2        ASSIGN_OBJ                                               $1, 'test'
          3        OP_DATA                                                  'nope'
   14     4      > RETURN                                                   null

End of function test

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.67 ms | 1393 KiB | 13 Q