3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.03 ms | 1395 KiB | 15 Q