3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cases = [ '', __FILE__, '/etc/hosts' ]; foreach ($cases as $file) { $time = microtime(); for($i=0; $i < 10000; $i++) { false === stream_resolve_include_path(''); } echo "($file), stream_resolve_include_path(): ".(microtime() - $time).PHP_EOL; $time = microtime(); for($i=0; $i < 10000; $i++) { false === file_exists(''); } echo "($file), file_exists(): ". (microtime() - $time).PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 48
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 48
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 30
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 30
Branch analysis from position: 38
Branch analysis from position: 30
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
Branch analysis from position: 8
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
filename:       /in/qjTT8
function name:  (null)
number of ops:  50
compiled vars:  !0 = $cases, !1 = $file, !2 = $time, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $5      !0, ->48
          2    > > FE_FETCH_R                                               $5, !1, ->48
    6     3    >   INIT_FCALL                                               'microtime'
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !2, $6
    7     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->14
    8     8    >   INIT_FCALL                                               'stream_resolve_include_path'
          9        SEND_VAL                                                 ''
         10        DO_ICALL                                         $9      
         11        TYPE_CHECK                                    4  ~10     $9
         12        FREE                                                     ~10
    7    13        PRE_INC                                                  !3
         14    >   IS_SMALLER                                               !3, 10000
         15      > JMPNZ                                                    ~12, ->8
   10    16    >   ROPE_INIT                                     3  ~14     '%28'
         17        ROPE_ADD                                      1  ~14     ~14, !1
         18        ROPE_END                                      2  ~13     ~14, '%29%2C+stream_resolve_include_path%28%29%3A+'
         19        INIT_FCALL                                               'microtime'
         20        DO_ICALL                                         $16     
         21        SUB                                              ~17     $16, !2
         22        CONCAT                                           ~18     ~13, ~17
         23        CONCAT                                           ~19     ~18, '%0A'
         24        ECHO                                                     ~19
   12    25        INIT_FCALL                                               'microtime'
         26        DO_ICALL                                         $20     
         27        ASSIGN                                                   !2, $20
   13    28        ASSIGN                                                   !3, 0
         29      > JMP                                                      ->36
   14    30    >   INIT_FCALL                                               'file_exists'
         31        SEND_VAL                                                 ''
         32        DO_ICALL                                         $23     
         33        TYPE_CHECK                                    4  ~24     $23
         34        FREE                                                     ~24
   13    35        PRE_INC                                                  !3
         36    >   IS_SMALLER                                               !3, 10000
         37      > JMPNZ                                                    ~26, ->30
   16    38    >   ROPE_INIT                                     3  ~28     '%28'
         39        ROPE_ADD                                      1  ~28     ~28, !1
         40        ROPE_END                                      2  ~27     ~28, '%29%2C+file_exists%28%29%3A+'
         41        INIT_FCALL                                               'microtime'
         42        DO_ICALL                                         $30     
         43        SUB                                              ~31     $30, !2
         44        CONCAT                                           ~32     ~27, ~31
         45        CONCAT                                           ~33     ~32, '%0A'
         46        ECHO                                                     ~33
    5    47      > JMP                                                      ->2
         48    >   FE_FREE                                                  $5
   17    49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1400 KiB | 19 Q