3v4l.org

run code in 500+ PHP versions simultaneously
<?php $revs = 10000; $time_start = microtime(true); for ($n=0; $n<$revs; $n++) { usleep(0); } $time_end = microtime(true); $time = $time_end - $time_start; echo "$time seconds\n"; $ops = ($time * 1000 * 1000) / $revs; echo "$ops op/microsecond";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/laINg
function name:  (null)
number of ops:  30
compiled vars:  !0 = $revs, !1 = $time_start, !2 = $n, !3 = $time_end, !4 = $time, !5 = $ops
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 10000
    5     1        INIT_FCALL                                                   'microtime'
          2        SEND_VAL                                                     <true>
          3        DO_ICALL                                             $7      
          4        ASSIGN                                                       !1, $7
    7     5        ASSIGN                                                       !2, 0
          6      > JMP                                                          ->11
    8     7    >   INIT_FCALL                                                   'usleep'
          8        SEND_VAL                                                     0
          9        DO_ICALL                                                     
    7    10        PRE_INC                                                      !2
         11    >   IS_SMALLER                                                   !2, !0
         12      > JMPNZ                                                        ~12, ->7
   11    13    >   INIT_FCALL                                                   'microtime'
         14        SEND_VAL                                                     <true>
         15        DO_ICALL                                             $13     
         16        ASSIGN                                                       !3, $13
   12    17        SUB                                                  ~15     !3, !1
         18        ASSIGN                                                       !4, ~15
   14    19        NOP                                                          
         20        FAST_CONCAT                                          ~17     !4, '+seconds%0A'
         21        ECHO                                                         ~17
   15    22        MUL                                                  ~18     !4, 1000
         23        MUL                                                  ~19     ~18, 1000
         24        DIV                                                  ~20     ~19, !0
         25        ASSIGN                                                       !5, ~20
   17    26        NOP                                                          
         27        FAST_CONCAT                                          ~22     !5, '+op%2Fmicrosecond'
         28        ECHO                                                         ~22
         29      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.71 ms | 480 KiB | 9 Q