3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(array &$foo) {} $a = []; a($a); function b(callable &$foo) {} $b = 'strlen'; b($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cs5LO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'a'
          2        SEND_REF                                                 !0
          3        DO_FCALL                                      0          
    8     4        ASSIGN                                                   !1, 'strlen'
    9     5        INIT_FCALL                                               'b'
          6        SEND_REF                                                 !1
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function a

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

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.27 ms | 1397 KiB | 15 Q