3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = function($b) { print "$b\n"; }; $a('lulz'); $b['lulz'] = function($b) { print "$b\n"; }; $b['lulz']('more lulz'); $c = new stdclass(); $c->func = function($b) { print "$b\n"; }; call_user_func_array(array($c, 'func', array('hahaha nope')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DhMvh
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FDhMvh%3A3%240'
          1        ASSIGN                                                   !0, ~3
    4     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              'lulz'
          4        DO_FCALL                                      0          
    6     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FDhMvh%3A6%241'
          6        ASSIGN_DIM                                               !1, 'lulz'
          7        OP_DATA                                                  ~7
    7     8        FETCH_DIM_R                                      ~8      !1, 'lulz'
          9        INIT_DYNAMIC_CALL                                        ~8
         10        SEND_VAL_EX                                              'more+lulz'
         11        DO_FCALL                                      0          
    9    12        NEW                                              $10     'stdclass'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !2, $10
   10    15        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FDhMvh%3A10%242'
         16        ASSIGN_OBJ                                               !2, 'func'
         17        OP_DATA                                                  ~14
   11    18        INIT_FCALL                                               'call_user_func_array'
         19        INIT_ARRAY                                       ~15     !2
         20        ADD_ARRAY_ELEMENT                                ~15     'func'
         21        ADD_ARRAY_ELEMENT                                ~15     <array>
         22        SEND_VAL                                                 ~15
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FDhMvh%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DhMvh
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        NOP                                                      
          2        FAST_CONCAT                                      ~1      !0, '%0A'
          3        ECHO                                                     ~1
          4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FDhMvh%3A3%240

Function %00%7Bclosure%7D%2Fin%2FDhMvh%3A6%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DhMvh
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        NOP                                                      
          2        FAST_CONCAT                                      ~1      !0, '%0A'
          3        ECHO                                                     ~1
          4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FDhMvh%3A6%241

Function %00%7Bclosure%7D%2Fin%2FDhMvh%3A10%242:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DhMvh
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        NOP                                                      
          2        FAST_CONCAT                                      ~1      !0, '%0A'
          3        ECHO                                                     ~1
          4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FDhMvh%3A10%242

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.28 ms | 1400 KiB | 15 Q