3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.22 ms | 1396 KiB | 15 Q