3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(&$obj) { return $obj; } $o = new StdClass; $foo = 'foo'; $foo($o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NHHQR
function name:  (null)
number of ops:  8
compiled vars:  !0 = $o, !1 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $2      'StdClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    8     3        ASSIGN                                                       !1, 'foo'
    9     4        INIT_DYNAMIC_CALL                                            !1
          5        SEND_VAR_EX                                                  !0
          6        DO_FCALL                                          0          
          7      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NHHQR
function name:  foo
number of ops:  3
compiled vars:  !0 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1      > RETURN                                                       !0
    5     2*     > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
218.89 ms | 1976 KiB | 13 Q