3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = [ 3 => 15, 7 => 17, ]; $bar = function(int ...$baz) { var_dump($baz); }; var_dump($foo); $bar(...$foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t1udq
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Ft1udq%3A8%240'
          2        ASSIGN                                                   !1, ~3
   12     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   13     6        INIT_DYNAMIC_CALL                                        !1
          7        SEND_UNPACK                                              !0
          8        CHECK_UNDEF_ARGS                                         
          9        DO_FCALL                                      1          
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Ft1udq%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t1udq
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_VARIADIC                                    !0      
    9     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   10     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Ft1udq%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.93 ms | 1395 KiB | 15 Q