3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = str_repeat('foo', 500000); $y = 'bar'; $before = microtime(1); $x = $x . $y; printf('%f'."\n", microtime(1) - $before); $x = str_repeat('foo', 500000); $y = 'bar'; $before = microtime(1); $x .= $y; printf('%f'."\n", microtime(1) - $before);
Output for 7.1.0
0.000351 0.000001
Output for 7.0.14
0.000363 0.000001
Output for 7.0.6
0.000796 0.000001
Output for 7.0.5
0.000860 0.000001
Output for 7.0.4
0.000468 0.000001
Output for 7.0.3
0.000347 0.000001
Output for 7.0.2
0.000411 0.000001
Output for 7.0.1
0.000381 0.000001
Output for 5.4.22, 7.0.0
0.000488 0.000002
Output for 5.6.14, 5.6.28
0.000614 0.000001
Output for 5.6.21
0.000922 0.000001
Output for 5.6.20
0.000500 0.000001
Output for 5.6.19
0.000561 0.000001
Output for 5.4.29, 5.6.18
0.000445 0.000001
Output for 5.4.25, 5.6.17
0.000576 0.000002
Output for 5.6.16
0.000843 0.000002
Output for 5.6.15
0.000677 0.000002
Output for 5.6.13
0.000918 0.000002
Output for 5.6.12
0.000556 0.000001
Output for 5.6.11
0.000647 0.000001
Output for 5.2.3, 5.6.10
0.000663 0.000002
Output for 5.6.9
0.000800 0.000002
Output for 5.6.8
0.000705 0.000002
Output for 5.5.35
0.000759 0.000001
Output for 5.5.34
0.000862 0.000002
Output for 5.5.33
0.000714 0.000002
Output for 5.5.32
0.000751 0.000002
Output for 5.5.31
0.000681 0.000001
Output for 5.5.30
0.000589 0.000001
Output for 5.4.0, 5.5.29
0.000583 0.000001
Output for 5.5.28
0.000693 0.000002
Output for 5.5.27
0.000524 0.000001
Output for 5.5.26
0.000523 0.000001
Output for 5.5.25
0.000815 0.000001
Output for 5.5.24
0.000527 0.000002
Output for 5.4.45
0.000803 0.000003
Output for 5.4.44
0.000998 0.000002
Output for 5.4.43
0.001195 0.000003
Output for 5.4.42
0.000870 0.000002
Output for 5.4.41
0.001207 0.000004
Output for 5.4.40
0.001281 0.000004
Output for 5.4.39
0.000851 0.000002
Output for 5.4.38
0.001006 0.000003
Output for 5.4.37
0.001330 0.000003
Output for 5.4.36
0.001576 0.000005
Output for 5.4.35
0.001432 0.000003
Output for 5.4.34
0.002014 0.000002
Output for 5.4.32
0.000447 0.000002
Output for 5.4.31
0.000433 0.000001
Output for 5.4.30
0.000456 0.000001
Output for 5.3.0, 5.4.28
0.000472 0.000002
Output for 5.4.27
0.000503 0.000002
Output for 5.4.26
0.000510 0.000002
Output for 5.4.24
0.000540 0.000002
Output for 5.4.8, 5.4.23
0.000717 0.000002
Output for 5.4.21
0.000663 0.000003
Output for 5.4.20
0.000539 0.000003
Output for 5.4.19
0.000683 0.000002
Output for 5.4.18
0.000734 0.000004
Output for 5.4.17
0.000658 0.000002
Output for 5.4.16
0.002809 0.000002
Output for 5.4.15
0.001015 0.000005
Output for 5.4.14
0.002542 0.000003
Output for 5.4.13
0.000857 0.000002
Output for 5.4.12
0.001190 0.000003
Output for 5.4.11
0.000978 0.000005
Output for 5.4.10
0.001960 0.000002
Output for 5.4.9
0.000742 0.000002
Output for 5.4.7
0.000651 0.000002
Output for 5.3.6, 5.4.6
0.000681 0.000002
Output for 5.4.5
0.000707 0.000002
Output for 5.4.4
0.000744 0.000003
Output for 5.4.3
0.000714 0.000003
Output for 5.4.2
0.000686 0.000003
Output for 5.2.10, 5.4.1
0.000522 0.000001
Output for 5.3.29
0.000492 0.000001
Output for 5.3.28
0.000610 0.000002
Output for 5.3.27
0.000623 0.000002
Output for 5.3.26
0.000683 0.000003
Output for 5.1.2, 5.3.25
0.000505 0.000002
Output for 5.2.0, 5.3.24
0.000487 0.000002
Output for 5.3.23
0.000448 0.000001
Output for 5.3.22
0.000482 0.000002
Output for 5.3.21
0.000488 0.000001
Output for 5.3.20
0.000498 0.000002
Output for 5.1.1, 5.3.19
0.000675 0.000002
Output for 5.3.18
0.000732 0.000002
Output for 5.3.17
0.000578 0.000002
Output for 5.3.16
0.000492 0.000002
Output for 5.3.15
0.000470 0.000002
Output for 5.3.14
0.000534 0.000001
Output for 5.3.13
0.000478 0.000001
Output for 5.3.12
0.000596 0.000002
Output for 5.3.11
0.000466 0.000001
Output for 5.3.10
0.000519 0.000002
Output for 5.3.9
0.000628 0.000002
Output for 5.3.8
0.000669 0.000002
Output for 5.3.7
0.000682 0.000003
Output for 5.3.5
0.000701 0.000001
Output for 5.3.4
0.000440 0.000001
Output for 5.3.3
0.000455 0.000002
Output for 5.3.2
0.000439 0.000002
Output for 5.3.1
0.000692 0.000003
Output for 5.2.17
0.000575 0.000001
Output for 5.2.16
0.000507 0.000002
Output for 5.2.15
0.000459 0.000002
Output for 5.2.14
0.000481 0.000001
Output for 5.2.13
0.000593 0.000001
Output for 5.2.12
0.000643 0.000002
Output for 5.2.11
0.000595 0.000002
Output for 5.2.9
0.000665 0.000002
Output for 5.2.8
0.000607 0.000002
Output for 5.2.7
0.000559 0.000001
Output for 5.2.6
0.000459 0.000001
Output for 5.2.5
0.000474 0.000002
Output for 5.2.4
0.000500 0.000003
Output for 5.2.2
0.000645 0.000002
Output for 5.2.1
0.000498 0.000001
Output for 5.1.6
0.000466 0.000002
Output for 5.1.5
0.000547 0.000002
Output for 5.1.4
0.000536 0.000002
Output for 5.1.3
0.000523 0.000002
Output for 5.1.0
0.000615 0.000002
Output for 5.0.5
0.000642 0.000003
Output for 5.0.4
0.000543 0.000002
Output for 5.0.3
0.000576 0.000003
Output for 5.0.2
0.000692 0.000004
Output for 5.0.1
0.000484 0.000002
Output for 5.0.0
0.000462 0.000003
Output for 4.4.9
0.000517 0.000003
Output for 4.4.8
0.000525 0.000004
Output for 4.4.7
0.000523 0.000003
Output for 4.4.6
0.000526 0.000003
Output for 4.4.5
0.000516 0.000003
Output for 4.4.4
0.000729 0.000005
Output for 4.4.3
0.000510 0.000003
Output for 4.4.2
0.000496 0.000003
Output for 4.4.1
0.000508 0.000003
Output for 4.4.0
0.000512 0.000004
Output for 4.3.11
0.000529 0.000004
Output for 4.3.10
0.000507 0.000003
Output for 4.3.9
0.000512 0.000005
Output for 4.3.8
0.000560 0.000005
Output for 4.3.7
0.000501 0.000005
Output for 4.3.6
0.000562 0.000005
Output for 4.3.5
0.000531 0.000004
Output for 4.3.4
0.000542 0.000005
Output for 4.3.3
0.000579 0.000006
Output for 4.3.2
0.000558 0.000004
Output for 4.3.1
0.000539 0.000005
Output for 4.3.0
0.000953 0.000006