3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "Something"; $b = "Other thing"; $startDouble = microtime(); for ($i = 0; $i < 10000; $i++) $var = "I am a single quote string $a & $b"; $endDouble = microtime(); $timeDouble = $endDouble - $startDouble; echo 'No math took : ',$timeDouble,'ms';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/Y4Ys1
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b, !2 = $startDouble, !3 = $i, !4 = $var, !5 = $endDouble, !6 = $timeDouble
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Something'
    3     1        ASSIGN                                                   !1, 'Other+thing'
    4     2        INIT_FCALL                                               'microtime'
          3        DO_ICALL                                         $9      
          4        ASSIGN                                                   !2, $9
    5     5        ASSIGN                                                   !3, 0
          6      > JMP                                                      ->13
    6     7    >   ROPE_INIT                                     4  ~13     'I+am+a+single+quote+string+'
          8        ROPE_ADD                                      1  ~13     ~13, !0
          9        ROPE_ADD                                      2  ~13     ~13, '+%26+'
         10        ROPE_END                                      3  ~12     ~13, !1
         11        ASSIGN                                                   !4, ~12
    5    12        PRE_INC                                                  !3
         13    >   IS_SMALLER                                               !3, 10000
         14      > JMPNZ                                                    ~17, ->7
    7    15    >   INIT_FCALL                                               'microtime'
         16        DO_ICALL                                         $18     
         17        ASSIGN                                                   !5, $18
    8    18        SUB                                              ~20     !5, !2
         19        ASSIGN                                                   !6, ~20
    9    20        ECHO                                                     'No+math+took+%3A+'
         21        ECHO                                                     !6
         22        ECHO                                                     'ms'
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.9 ms | 1395 KiB | 15 Q