3v4l.org

run code in 300+ PHP versions simultaneously
<?php function noop($d){return $d;} $d = '';$i=$e=0; $start = microtime(1); while($i++ < 5000000) $d = str_rot13('rotate 13'); echo microtime(1) - $start; echo "\n"; $start = microtime(1); while($e++ < 5000000) $d = noop('rotate 13'); echo microtime(1) - $start;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 26
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 26
Branch analysis from position: 33
Branch analysis from position: 26
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/iCRRt
function name:  (null)
number of ops:  39
compiled vars:  !0 = $d, !1 = $i, !2 = $e, !3 = $start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
          1        ASSIGN                                           ~5      !2, 0
          2        ASSIGN                                                   !1, ~5
    4     3        INIT_FCALL                                               'microtime'
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !3, $7
    5     7      > JMP                                                      ->12
          8    >   INIT_FCALL                                               'str_rot13'
          9        SEND_VAL                                                 'rotate+13'
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !0, $9
         12    >   POST_INC                                         ~11     !1
         13        IS_SMALLER                                               ~11, 5000000
         14      > JMPNZ                                                    ~12, ->8
    6    15    >   INIT_FCALL                                               'microtime'
         16        SEND_VAL                                                 1
         17        DO_ICALL                                         $13     
         18        SUB                                              ~14     $13, !3
         19        ECHO                                                     ~14
    7    20        ECHO                                                     '%0A'
    8    21        INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $15     
         24        ASSIGN                                                   !3, $15
    9    25      > JMP                                                      ->30
         26    >   INIT_FCALL                                               'noop'
         27        SEND_VAL                                                 'rotate+13'
         28        DO_FCALL                                      0  $17     
         29        ASSIGN                                                   !0, $17
         30    >   POST_INC                                         ~19     !2
         31        IS_SMALLER                                               ~19, 5000000
         32      > JMPNZ                                                    ~20, ->26
   10    33    >   INIT_FCALL                                               'microtime'
         34        SEND_VAL                                                 1
         35        DO_ICALL                                         $21     
         36        SUB                                              ~22     $21, !3
         37        ECHO                                                     ~22
         38      > RETURN                                                   1

Function noop:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iCRRt
function name:  noop
number of ops:  3
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of function noop

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.77 ms | 1403 KiB | 18 Q