3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 50000; $i--; ) { $s = microtime(true); glob("*.php"); $d = microtime(true) - $s; if($i % 5 == 0) echo $d, "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
Branch analysis from position: 19
filename:       /in/3PcLN
function name:  (null)
number of ops:  22
compiled vars:  !0 = $i, !1 = $s, !2 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 50000
          1      > JMP                                                      ->19
    4     2    >   INIT_FCALL                                               'microtime'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'glob'
          7        SEND_VAL                                                 '%2A.php'
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'microtime'
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $7      
         12        SUB                                              ~8      $7, !1
         13        ASSIGN                                                   !2, ~8
    7    14        MOD                                              ~10     !0, 5
         15        IS_EQUAL                                                 ~10, 0
         16      > JMPZ                                                     ~11, ->19
         17    >   ECHO                                                     !2
         18        ECHO                                                     '%0A'
    3    19    >   POST_DEC                                         ~12     !0
         20      > JMPNZ                                                    ~12, ->2
    8    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.39 ms | 1387 KiB | 17 Q