3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.38 ms | 1400 KiB | 17 Q