3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time=microtime(true); for($run=0;$run<10000000; $run++) $string1='Hello this is a string which is being read many times and stuff like that.'; $time=microtime(true)-$time; echo "Single quotes took $time seconds\n"; $time=microtime(true); for($run=0;$run<10000000; $run++) $string2="Hello this is a string which is being read many times and stuff like that."; $time=microtime(true)-$time; echo "Double quotes took $time seconds\n";
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 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 25
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 25
Branch analysis from position: 29
Branch analysis from position: 25
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/QnAsp
function name:  (null)
number of ops:  39
compiled vars:  !0 = $time, !1 = $run, !2 = $string1, !3 = $string2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->8
    4     6    >   ASSIGN                                                   !2, 'Hello+this+is+a+string+which+is+being+read+many+times+and+stuff+like+that.'
    3     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 10000000
          9      > JMPNZ                                                    ~9, ->6
    5    10    >   INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $10     
         13        SUB                                              ~11     $10, !0
         14        ASSIGN                                                   !0, ~11
    6    15        ROPE_INIT                                     3  ~14     'Single+quotes+took+'
         16        ROPE_ADD                                      1  ~14     ~14, !0
         17        ROPE_END                                      2  ~13     ~14, '+seconds%0A'
         18        ECHO                                                     ~13
    8    19        INIT_FCALL                                               'microtime'
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $16     
         22        ASSIGN                                                   !0, $16
    9    23        ASSIGN                                                   !1, 0
         24      > JMP                                                      ->27
   10    25    >   ASSIGN                                                   !3, 'Hello+this+is+a+string+which+is+being+read+many+times+and+stuff+like+that.'
    9    26        PRE_INC                                                  !1
         27    >   IS_SMALLER                                               !1, 10000000
         28      > JMPNZ                                                    ~21, ->25
   11    29    >   INIT_FCALL                                               'microtime'
         30        SEND_VAL                                                 <true>
         31        DO_ICALL                                         $22     
         32        SUB                                              ~23     $22, !0
         33        ASSIGN                                                   !0, ~23
   12    34        ROPE_INIT                                     3  ~26     'Double+quotes+took+'
         35        ROPE_ADD                                      1  ~26     ~26, !0
         36        ROPE_END                                      2  ~25     ~26, '+seconds%0A'
         37        ECHO                                                     ~25
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.91 ms | 1392 KiB | 15 Q