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 & $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 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
Branch analysis from position: 7
filename:       /in/unRWi
function name:  (null)
number of ops:  28
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                                                      ->17
    6     7    >   ROPE_INIT                                     8  ~13     'I+am+a+single+quote+string+'
          8        ROPE_ADD                                      1  ~13     ~13, !0
          9        ROPE_ADD                                      2  ~13     ~13, '+%26+'
         10        ROPE_ADD                                      3  ~13     ~13, !1
         11        ROPE_ADD                                      4  ~13     ~13, '+%26+'
         12        ROPE_ADD                                      5  ~13     ~13, !0
         13        ROPE_ADD                                      6  ~13     ~13, '+%26+'
         14        ROPE_END                                      7  ~12     ~13, !1
         15        ASSIGN                                                   !4, ~12
    5    16        PRE_INC                                                  !3
         17    >   IS_SMALLER                                               !3, 10000
         18      > JMPNZ                                                    ~19, ->7
    7    19    >   INIT_FCALL                                               'microtime'
         20        DO_ICALL                                         $20     
         21        ASSIGN                                                   !5, $20
    8    22        SUB                                              ~22     !5, !2
         23        ASSIGN                                                   !6, ~22
    9    24        ECHO                                                     'No+math+took+%3A+'
         25        ECHO                                                     !6
         26        ECHO                                                     'ms'
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.42 ms | 1396 KiB | 15 Q