3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = hrtime(true); $a = array(); for($i=0;$i<10000;$i++) { $a[] = $i; } $end = hrtime(true); $time = $end - $start; echo $time;
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/saKMB
function name:  (null)
number of ops:  20
compiled vars:  !0 = $start, !1 = $a, !2 = $i, !3 = $end, !4 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'hrtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    4     4        ASSIGN                                                   !1, <array>
    5     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->10
    6     7    >   ASSIGN_DIM                                               !1
          8        OP_DATA                                                  !2
    5     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 10000
         11      > JMPNZ                                                    ~11, ->7
    8    12    >   INIT_FCALL                                               'hrtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
    9    16        SUB                                              ~14     !3, !0
         17        ASSIGN                                                   !4, ~14
   10    18        ECHO                                                     !4
   11    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.6 ms | 1395 KiB | 15 Q