3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function () { var_dump(memory_get_usage()); var_dump(error_get_last()); $lotsOfMemoryLeftThatCanBeUsed = str_repeat(' ', 1000); var_dump(strlen($lotsOfMemoryLeftThatCanBeUsed)); }); function foo() { foo(); } foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K2Uq4
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        DECLARE_LAMBDA_FUNCTION                          ~0      [0]
    9     2        SEND_VAL                                                 ~0
    3     3        DO_ICALL                                                 
   16     4        INIT_FCALL                                               'foo'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K2Uq4
function name:  {closure}
number of ops:  20
compiled vars:  !0 = $lotsOfMemoryLeftThatCanBeUsed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'memory_get_usage'
          2        DO_ICALL                                         $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'error_get_last'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'str_repeat'
         11        SEND_VAL                                                 '+'
         12        SEND_VAL                                                 1000
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !0, $5
    8    15        INIT_FCALL                                               'var_dump'
         16        STRLEN                                           ~7      !0
         17        SEND_VAL                                                 ~7
         18        DO_ICALL                                                 
    9    19      > RETURN                                                   null

End of Dynamic Function 0

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K2Uq4
function name:  foo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL_BY_NAME                                       'foo'
          1        DO_FCALL                                      0          
   14     2      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.92 ms | 1005 KiB | 19 Q