3v4l.org

run code in 300+ PHP versions simultaneously
<?php $starttime = time(); $i = 0; $str = ""; while (true) { $str .= $i."\n"; $i++; //sleep(1); $runtime = time() - $starttime; if($runtime >= 5) break; } echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 16
filename:       /in/Uq8Qf
function name:  (null)
number of ops:  19
compiled vars:  !0 = $starttime, !1 = $i, !2 = $str, !3 = $runtime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    5     3        ASSIGN                                                   !1, 0
          4        ASSIGN                                                   !2, ''
    6     5      > JMP                                                      ->16
    7     6    >   CONCAT                                           ~8      !1, '%0A'
          7        ASSIGN_OP                                     8          !2, ~8
    8     8        PRE_INC                                                  !1
   10     9        INIT_FCALL                                               'time'
         10        DO_ICALL                                         $11     
         11        SUB                                              ~12     $11, !0
         12        ASSIGN                                                   !3, ~12
   11    13        IS_SMALLER_OR_EQUAL                                      5, !3
         14      > JMPZ                                                     ~14, ->16
         15    > > JMP                                                      ->17
    6    16    > > JMPNZ                                                    <true>, ->6
   14    17    >   ECHO                                                     !2
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.96 ms | 1395 KiB | 15 Q