3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'Something'; $b = 'Other thing'; $startSingle = microtime(); for ($i = 0; $i < 10000; $i++) $var = 'I am a single quote string '.$a.' & '.$b.' & '.$a.' & '.$b; $endSingle = microtime(); $timeSingle = $endSingle - $startSingle; echo 'No math took : ',$timeSingle,'ms';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 7
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 7
Branch analysis from position: 18
Branch analysis from position: 7
filename:       /in/5Zro4
function name:  (null)
number of ops:  27
compiled vars:  !0 = $a, !1 = $b, !2 = $startSingle, !3 = $i, !4 = $var, !5 = $endSingle, !6 = $timeSingle
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                                                      ->16
    6     7    >   CONCAT                                           ~12     'I+am+a+single+quote+string+', !0
          8        CONCAT                                           ~13     ~12, '+%26+'
          9        CONCAT                                           ~14     ~13, !1
         10        CONCAT                                           ~15     ~14, '+%26+'
         11        CONCAT                                           ~16     ~15, !0
         12        CONCAT                                           ~17     ~16, '+%26+'
         13        CONCAT                                           ~18     ~17, !1
         14        ASSIGN                                                   !4, ~18
    5    15        PRE_INC                                                  !3
         16    >   IS_SMALLER                                               !3, 10000
         17      > JMPNZ                                                    ~21, ->7
    7    18    >   INIT_FCALL                                               'microtime'
         19        DO_ICALL                                         $22     
         20        ASSIGN                                                   !5, $22
    8    21        SUB                                              ~24     !5, !2
         22        ASSIGN                                                   !6, ~24
    9    23        ECHO                                                     'No+math+took+%3A+'
         24        ECHO                                                     !6
         25        ECHO                                                     'ms'
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.51 ms | 1396 KiB | 15 Q