3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.04 ms | 1386 KiB | 15 Q