3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function() { $lastError = error_get_last(); if ($lastError && strpos($lastError['message'], 'exceeded memory') !== false /* && extension_loaded('xdebug')*/) { echo 'you had xdebug enabled, consider disabling it!'; } }); ini_set('memory_limit', '2M'); str_repeat('a', 999999999);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BiSm9
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FBiSm9%3A3%240'
    9     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   11     4        INIT_FCALL                                               'ini_set'
          5        SEND_VAL                                                 'memory_limit'
          6        SEND_VAL                                                 '2M'
          7        DO_ICALL                                                 
   13     8        INIT_FCALL                                               'str_repeat'
          9        SEND_VAL                                                 'a'
         10        SEND_VAL                                                 999999999
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FBiSm9%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 11
filename:       /in/BiSm9
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $lastError
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'error_get_last'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
    6     3      > JMPZ_EX                                          ~3      !0, ->11
          4    >   INIT_FCALL                                               'strpos'
          5        FETCH_DIM_R                                      ~4      !0, 'message'
          6        SEND_VAL                                                 ~4
          7        SEND_VAL                                                 'exceeded+memory'
          8        DO_ICALL                                         $5      
          9        TYPE_CHECK                                  1018  ~6      $5
         10        BOOL                                             ~3      ~6
         11    > > JMPZ                                                     ~3, ->13
    7    12    >   ECHO                                                     'you+had+xdebug+enabled%2C+consider+disabling+it%21'
    9    13    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FBiSm9%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.2 ms | 1388 KiB | 23 Q