3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function __lambda_func() { return print 'no'; } } namespace Bar { function yuno($x) { $x(); } } namespace { function __lambda_func() { return print 'no'; } Bar\yuno(function() { return print 'OK'; }); $fn = create_function("", "return 'OK';"); var_dump($fn()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7bGg5
function name:  (null)
number of ops:  15
compiled vars:  !0 = $fn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'bar%5Cyuno'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7bGg5%3A19%240'
   21     2        SEND_VAL                                                 ~1
          3        DO_FCALL                                      0          
   22     4        INIT_FCALL_BY_NAME                                       'create_function'
          5        SEND_VAL_EX                                              ''
          6        SEND_VAL_EX                                              'return+%27OK%27%3B'
          7        DO_FCALL                                      0  $3      
          8        ASSIGN                                                   !0, $3
   23     9        INIT_FCALL                                               'var_dump'
         10        INIT_DYNAMIC_CALL                                        !0
         11        DO_FCALL                                      0  $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
   24    14      > RETURN                                                   1

Function foo%5C__lambda_func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7bGg5
function name:  Foo\__lambda_func
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'no'
          1      > RETURN                                                   1
    6     2*     > RETURN                                                   null

End of function foo%5C__lambda_func

Function bar%5Cyuno:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7bGg5
function name:  Bar\yuno
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
   12     3      > RETURN                                                   null

End of function bar%5Cyuno

Function __lambda_func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7bGg5
function name:  __lambda_func
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                     'no'
          1      > RETURN                                                   1
   18     2*     > RETURN                                                   null

End of function __lambda_func

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

End of function %00%7Bclosure%7D%2Fin%2F7bGg5%3A19%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.21 ms | 1403 KiB | 16 Q