3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_repeat('foo', 500000); $y = 'bar'; $before = microtime(1); $x = $x . $y; var_dump(microtime(1) - $before);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lanpM
function name:  (null)
number of ops:  20
compiled vars:  !0 = $x, !1 = $y, !2 = $before
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'foo'
          2        SEND_VAL                                                 500000
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        ASSIGN                                                   !1, 'bar'
    6     6        INIT_FCALL                                               'microtime'
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    8    10        CONCAT                                           ~8      !0, !1
         11        ASSIGN                                                   !0, ~8
   10    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $10     
         16        SUB                                              ~11     $10, !2
         17        SEND_VAL                                                 ~11
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.87 ms | 1395 KiB | 19 Q