3v4l.org

run code in 500+ 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                              ~2      [0]
    9     6        SEND_VAL                                                     ~2
    5     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


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xuun2
function name:  {closure:/in/Xuun2:5}
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 Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.86 ms | 3341 KiB | 17 Q