3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($param, $a, $b, $c) { print $param; } function func() { print 1; } test(func(), $var, 1, 1+1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/svX2g
function name:  (null)
number of ops:  9
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'test'
          1        INIT_FCALL                                               'func'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR                                                 $1
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 2
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function test

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

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.27 ms | 1397 KiB | 15 Q