3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JpibG
function name:  test
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      <array>
    3     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  19
    4     3      > RETURN                                                   !0
    5     4*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.99 ms | 1397 KiB | 17 Q