3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function call() { return function(){echo 'called';}; } \Foo::call(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VLpBF
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_STATIC_METHOD_CALL                                  'Foo', 'call'
          1        DO_FCALL                                      0          
   12     2      > RETURN                                                   1

Function foo%5Ccall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VLpBF
function name:  Foo\call
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00foo%5C%7Bclosure%7D%2Fin%2FVLpBF%3A7%240'
          1      > RETURN                                                   ~0
    8     2*     > RETURN                                                   null

End of function foo%5Ccall

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

End of function %00foo%5C%7Bclosure%7D%2Fin%2FVLpBF%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.51 ms | 1384 KiB | 13 Q