3v4l.org

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

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.86 ms | 1395 KiB | 15 Q