3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); register_tick_function(function() { var_dump(debug_backtrace()); }); function foo() { exit; } foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AnUb7
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   TICKS                                                    
    5     1        INIT_FCALL                                               'register_tick_function'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FAnUb7%3A5%240'
    7     3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
          5        TICKS                                                    
   13     6        INIT_FCALL                                               'foo'
          7        DO_FCALL                                      0          
          8        TICKS                                                    
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FAnUb7%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AnUb7
function name:  {closure}
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'debug_backtrace'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5        TICKS                                                    
    7     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FAnUb7%3A5%240

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/AnUb7
function name:  foo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > EXIT                                                     
          1*       TICKS                                                    
   11     2*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.37 ms | 1398 KiB | 20 Q