3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 5000000000; $i ++) { $fp = fopen("/dev/null", "w"); if (($i % 500000) == 0) { var_dump($fp); system("date"); } // if fclose($fp); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 2
Branch analysis from position: 22
Branch analysis from position: 2
Branch analysis from position: 16
filename:       /in/rBGt6
function name:  (null)
number of ops:  23
compiled vars:  !0 = $i, !1 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->20
    5     2    >   INIT_FCALL                                               'fopen'
          3        SEND_VAL                                                 '%2Fdev%2Fnull'
          4        SEND_VAL                                                 'w'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    6     7        MOD                                              ~5      !0, 500000
          8        IS_EQUAL                                                 ~5, 0
          9      > JMPZ                                                     ~6, ->16
    8    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'system'
         14        SEND_VAL                                                 'date'
         15        DO_ICALL                                                 
   11    16    >   INIT_FCALL                                               'fclose'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
    3    19        PRE_INC                                                  !0
         20    >   IS_SMALLER                                               !0, 5000000000
         21      > JMPNZ                                                    ~11, ->2
   12    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.12 ms | 1395 KiB | 21 Q