3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { $x = array_merge(array(1,2,3), (array) func_get_arg(0)); echo print_r($x, 1), "\n"; } test(); test(5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lGFIn
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0          
    9     2        INIT_FCALL                                               'test'
          3        SEND_VAL                                                 5
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lGFIn
function name:  test
number of ops:  16
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'array_merge'
          1        SEND_VAL                                                 <array>
          2        INIT_FCALL                                               'func_get_arg'
          3        SEND_VAL                                                 0
          4        DO_ICALL                                         $1      
          5        CAST                                          7  ~2      $1
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    5     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $5      
         13        ECHO                                                     $5
         14        ECHO                                                     '%0A'
    6    15      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.89 ms | 1397 KiB | 21 Q