3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = (object)"Whoooot!"; $b = &$a; function testIt ($c){ prin_r($c); } testIt($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UGHvt
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          8  ~2      'Whoooot%21'
          1        ASSIGN                                                   !0, ~2
    3     2        ASSIGN_REF                                               !1, !0
   10     3        INIT_FCALL                                               'testit'
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function testit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UGHvt
function name:  testIt
number of ops:  5
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL_BY_NAME                                       'prin_r'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
    8     4      > RETURN                                                   null

End of function testit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.2 ms | 1397 KiB | 14 Q