3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exports = call_user_func(function(){ $fn = function($a, $b, $c) { echo "abc it's as easy as $a $b $c"; }; $fn_obj = (object) function() use(&$fn) { return call_user_func_array($fn, func_get_args()); }; $fn_obj->call = function() { }; return $fn_obj; }); $exports(1,2,3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BcG8G
function name:  (null)
number of ops:  10
compiled vars:  !0 = $exports
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FBcG8G%3A2%240'
   13     1        INIT_USER_CALL                                0          'call_user_func', ~1
          2        DO_FCALL                                      0  $2      
    2     3        ASSIGN                                                   !0, $2
   15     4        INIT_DYNAMIC_CALL                                        !0
          5        SEND_VAL_EX                                              1
          6        SEND_VAL_EX                                              2
          7        SEND_VAL_EX                                              3
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FBcG8G%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BcG8G
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $fn, !1 = $fn_obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FBcG8G%3A3%241'
          1        ASSIGN                                                   !0, ~2
    6     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FBcG8G%3A6%242'
          3        BIND_LEXICAL                                             ~4, !0
    8     4        CAST                                          8  ~5      ~4
    6     5        ASSIGN                                                   !1, ~5
    9     6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FBcG8G%3A9%243'
          7        ASSIGN_OBJ                                               !1, 'call'
   11     8        OP_DATA                                                  ~8
   12     9      > RETURN                                                   !1
   13    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FBcG8G%3A2%240

Function %00%7Bclosure%7D%2Fin%2FBcG8G%3A3%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BcG8G
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        ROPE_INIT                                     6  ~4      'abc+it%27s+as+easy+as+'
          4        ROPE_ADD                                      1  ~4      ~4, !0
          5        ROPE_ADD                                      2  ~4      ~4, '+'
          6        ROPE_ADD                                      3  ~4      ~4, !1
          7        ROPE_ADD                                      4  ~4      ~4, '+'
          8        ROPE_END                                      5  ~3      ~4, !2
          9        ECHO                                                     ~3
    5    10      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FBcG8G%3A3%241

Function %00%7Bclosure%7D%2Fin%2FBcG8G%3A6%242:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BcG8G
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $fn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   BIND_STATIC                                              !0
    7     1        INIT_USER_CALL                                0          'call_user_func_array', !0
          2        FUNC_GET_ARGS                                    ~1      
          3        SEND_ARRAY                                               ~1
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      0  $2      
          6      > RETURN                                                   $2
    8     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FBcG8G%3A6%242

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

End of function %00%7Bclosure%7D%2Fin%2FBcG8G%3A9%243

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.83 ms | 1399 KiB | 13 Q