3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = [ "int" => function($a, $b, $c) { var_dump($a, $b, $c); } ]; $foo[int](1,2,3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qdn2r
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fqdn2r%3A4%240'
    6     1        INIT_ARRAY                                       ~2      ~1, 'int'
    3     2        ASSIGN                                                   !0, ~2
    9     3        FETCH_CONSTANT                                   ~4      'int'
          4        FETCH_DIM_R                                      ~5      !0, ~4
          5        INIT_DYNAMIC_CALL                                        ~5
          6        SEND_VAL_EX                                              1
          7        SEND_VAL_EX                                              2
          8        SEND_VAL_EX                                              3
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2Fqdn2r%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.04 ms | 1395 KiB | 15 Q