3v4l.org

run code in 300+ PHP versions simultaneously
<?php $app = 'holder'; function call_some_stuff($arg) { call_user_func($arg); } $authRequest = function( $meta = 'opval' ) use ($app) { return function() use ($meta, $app) { echo "Strings: {$meta} -> {$app}"; }; }; call_some_stuff($authRequest('Closure'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b14KL
function name:  (null)
number of ops:  11
compiled vars:  !0 = $app, !1 = $authRequest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'holder'
    8     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fb14KL%3A8%240'
          2        BIND_LEXICAL                                             ~3, !0
          3        ASSIGN                                                   !1, ~3
   16     4        INIT_FCALL                                               'call_some_stuff'
          5        INIT_DYNAMIC_CALL                                        !1
          6        SEND_VAL_EX                                              'Closure'
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR                                                 $5
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function call_some_stuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b14KL
function name:  call_some_stuff
number of ops:  4
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_USER_CALL                                0          'call_user_func', !0
          2        DO_FCALL                                      0          
    7     3      > RETURN                                                   null

End of function call_some_stuff

Function %00%7Bclosure%7D%2Fin%2Fb14KL%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b14KL
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $meta, !1 = $app
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_INIT                                        !0      'opval'
          1        BIND_STATIC                                              !1
    9     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fb14KL%3A9%241'
          3        BIND_LEXICAL                                             ~2, !0
          4        BIND_LEXICAL                                             ~2, !1
   13     5      > RETURN                                                   ~2
   14     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fb14KL%3A8%240

Function %00%7Bclosure%7D%2Fin%2Fb14KL%3A9%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b14KL
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $meta, !1 = $app
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   BIND_STATIC                                              !0
          1        BIND_STATIC                                              !1
   11     2        ROPE_INIT                                     4  ~3      'Strings%3A+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '+-%3E+'
          5        ROPE_END                                      3  ~2      ~3, !1
          6        ECHO                                                     ~2
   13     7      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fb14KL%3A9%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.75 ms | 1403 KiB | 14 Q