3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.11 ms | 1395 KiB | 19 Q