3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', '2K'); //$y = str_repeat("x", 1000); set_error_handler(function() { //global $y; //$y = ''; print 'Ahh, there is a fatal'; //print memory_get_usage(); }); register_shutdown_function(function() { print memory_get_usage(); print 'Shutdown'; }); //print memory_get_usage(); $x = str_repeat("x", 2*1024*1024);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ksu32
function name:  (null)
number of ops:  18
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'memory_limit'
          2        SEND_VAL                                                 '2K'
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'set_error_handler'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fksu32%3A5%240'
   10     6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   12     8        INIT_FCALL                                               'register_shutdown_function'
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fksu32%3A12%241'
   15    10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
   19    12        INIT_FCALL                                               'str_repeat'
         13        SEND_VAL                                                 'x'
         14        SEND_VAL                                                 2097152
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !0, $6
         17      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fksu32%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ksu32
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'Ahh%2C+there+is+a+fatal'
   10     1      > RETURN                                                   null

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

Function %00%7Bclosure%7D%2Fin%2Fksu32%3A12%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ksu32
function name:  {closure}
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'memory_get_usage'
          1        DO_ICALL                                         $0      
          2        ECHO                                                     $0
   14     3        ECHO                                                     'Shutdown'
   15     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fksu32%3A12%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.31 ms | 1396 KiB | 23 Q