3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.52 ms | 935 KiB | 16 Q