3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=array(); $time = time(); for($i=0; $i<1000; $i++){ $array[] = $i; } $time = time() - $time; echo "done:" . $time;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/X5biN
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array, !1 = $time, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !1, $4
    4     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->9
    5     6    >   ASSIGN_DIM                                               !0
          7        OP_DATA                                                  !2
    4     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, 1000
         10      > JMPNZ                                                    ~9, ->6
    7    11    >   INIT_FCALL                                               'time'
         12        DO_ICALL                                         $10     
         13        SUB                                              ~11     $10, !1
         14        ASSIGN                                                   !1, ~11
    8    15        CONCAT                                           ~13     'done%3A', !1
         16        ECHO                                                     ~13
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.87 ms | 1395 KiB | 15 Q