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); // $x = str_repeat('foo', 500000); // $y = 'bar'; // $before = microtime(1); $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/mUTfH
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $y
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                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        ASSIGN                                                   !1, 'bar'
    8     6        CONCAT                                           ~5      !0, !1
          7        ASSIGN                                                   !0, ~5
   18     8        ASSIGN_OP                                     8          !0, !1
   20     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
286.48 ms | 1394 KiB | 16 Q