3v4l.org

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

Function addtoboolfilter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DnkI3
function name:  addToBoolFilter
number of ops:  6
compiled vars:  !0 = $boolFilter, !1 = $elements
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_VARIADIC                                    !1      
    5     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
    6     5      > RETURN                                                   null

End of function addtoboolfilter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.39 ms | 1389 KiB | 17 Q