3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.93 ms | 1400 KiB | 17 Q