3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', '1M'); register_shutdown_function(function () { ini_set('memory_limit', '10M'); $v = str_repeat(' ', 2 ** 21); var_dump(strlen($v)); }); $v = str_repeat(' ', 2 ** 21);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xuun2
function name:  (null)
number of ops:  14
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'memory_limit'
          2        SEND_VAL                                                 '1M'
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'register_shutdown_function'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXuun2%3A5%240'
    9     6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   11     8        INIT_FCALL                                               'str_repeat'
          9        SEND_VAL                                                 '+'
         10        SEND_VAL                                                 2097152
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FXuun2%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xuun2
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'memory_limit'
          2        SEND_VAL                                                 '10M'
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'str_repeat'
          5        SEND_VAL                                                 '+'
          6        SEND_VAL                                                 2097152
          7        DO_ICALL                                         $2      
          8        ASSIGN                                                   !0, $2
    8     9        INIT_FCALL                                               'var_dump'
         10        STRLEN                                           ~4      !0
         11        SEND_VAL                                                 ~4
         12        DO_ICALL                                                 
    9    13      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.31 ms | 1401 KiB | 21 Q