3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $foo = 'foo'; $st = microtime(true); for ($i = 0; $i < 1000; $i++) { array_splice($a,0,0,array(&$foo)); } $et = microtime(true); echo 'splice: ', $et - $st, "\n"; $a = array(); $foo = 'foo'; $st = microtime(true); for ($i = 0; $i < 1000; $i++) { array_unshift($a,&$foo); } $et = microtime(true); echo 'unshift: ', $et - $st, "\n";
Output for 5.4.0 - 5.4.21
Fatal error: Call-time pass-by-reference has been removed in /in/ViK3K on line 16
Process exited with code 255.
Output for 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015926837921143 unshift: 0.015553951263428
Output for 5.3.28
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.016124963760376 unshift: 0.015505075454712
Output for 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018560171127319 unshift: 0.018692970275879
Output for 5.3.26
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018295049667358 unshift: 0.049610137939453
Output for 5.3.25
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.01814603805542 unshift: 0.018392086029053
Output for 5.3.24
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018591165542603 unshift: 0.018256187438965
Output for 5.3.23
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018333911895752 unshift: 0.019912958145142
Output for 5.3.22
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018767833709717 unshift: 0.018911123275757
Output for 5.3.21
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.019298076629639 unshift: 0.020348072052002
Output for 5.3.20
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.019167184829712 unshift: 0.019070863723755
Output for 5.3.19
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018225193023682 unshift: 0.018862009048462
Output for 5.3.18
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018374919891357 unshift: 0.01872992515564
Output for 5.3.17
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018377065658569 unshift: 0.051784038543701
Output for 5.3.16
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018344879150391 unshift: 0.019049167633057
Output for 5.3.15
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018401145935059 unshift: 0.049349069595337
Output for 5.3.14
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.01932692527771 unshift: 0.020466089248657
Output for 5.3.13
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.019061088562012 unshift: 0.019256114959717
Output for 5.3.12
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.01922607421875 unshift: 0.019469022750854
Output for 5.3.11
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.019751071929932 unshift: 0.020102024078369
Output for 5.3.10
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018979072570801 unshift: 0.018738031387329
Output for 5.3.9
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.019260883331299 unshift: 0.018699884414673
Output for 5.3.8
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.019174098968506 unshift: 0.020243167877197
Output for 5.3.7
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.019429922103882 unshift: 0.020114898681641
Output for 5.3.6
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.019200801849365 unshift: 0.079466104507446
Output for 5.3.5
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.022531986236572 unshift: 0.019232034683228
Output for 5.3.4
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.020086050033569 unshift: 0.020664930343628
Output for 5.3.3
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018903017044067 unshift: 0.019217967987061
Output for 5.3.2
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018728017807007 unshift: 0.020473003387451
Output for 5.3.1
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.020128965377808 unshift: 0.019798994064331
Output for 5.3.0
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.018457174301147 unshift: 0.019561052322388