3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('memory_limit', 2100000); function foo($i = 0) { print $i.PHP_EOL; foo($i + 1); $a = 2; } foo();

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bPXW4
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'memory_limit'
          2        SEND_VAL                                                     2100000
          3        DO_ICALL                                                     
   11     4        INIT_FCALL                                                   'foo'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bPXW4
function name:  foo
number of ops:  9
compiled vars:  !0 = $i, !1 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                            !0      0
    6     1        CONCAT                                               ~2      !0, '%0A'
          2        ECHO                                                         ~2
    7     3        INIT_FCALL_BY_NAME                                           'foo'
          4        ADD                                                  ~3      !0, 1
          5        SEND_VAL_EX                                                  ~3
          6        DO_FCALL                                          0          
    8     7        ASSIGN                                                       !1, 2
    9     8      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.19 ms | 1341 KiB | 15 Q