3v4l.org

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

Function i:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mpY32
function name:  i
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of function i

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

End of function %00%7Bclosure%7D%2Fin%2FmpY32%3A6%240

Function %00%7Bclosure%7D%2Fin%2FmpY32%3A8%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mpY32
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'hi'
   10     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FmpY32%3A8%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.24 ms | 1390 KiB | 16 Q