3v4l.org

run code in 150+ 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.017235994338989 unshift: 0.018490076065063
Output for 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.016404867172241 unshift: 0.016427040100098
Output for 5.3.26
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015762090682983 unshift: 0.015608072280884
Output for 5.3.25
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015651941299438 unshift: 0.01559591293335
Output for 5.3.24
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.016357898712158 unshift: 0.019186019897461
Output for 5.3.23
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.027534008026123 unshift: 0.027874946594238
Output for 5.3.22
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.024026155471802 unshift: 0.015224933624268
Output for 5.3.21
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015979051589966 unshift: 0.016159057617188
Output for 5.3.20
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.016909837722778 unshift: 0.015514135360718
Output for 5.3.19
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015883922576904 unshift: 0.015736818313599
Output for 5.3.18
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.017230033874512 unshift: 0.019245862960815
Output for 5.3.17
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015722990036011 unshift: 0.016360998153687
Output for 5.3.16
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015742063522339 unshift: 0.015553951263428
Output for 5.3.15
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.01599907875061 unshift: 0.015743017196655
Output for 5.3.14
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015631914138794 unshift: 0.015650033950806
Output for 5.3.13
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015183925628662 unshift: 0.015458106994629
Output for 5.3.12
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.016037940979004 unshift: 0.017553091049194
Output for 5.3.11
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015496969223022 unshift: 0.01589298248291
Output for 5.3.10
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015916109085083 unshift: 0.016483783721924
Output for 5.3.9
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015483856201172 unshift: 0.01640796661377
Output for 5.3.8
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.027399063110352 unshift: 0.027990102767944
Output for 5.3.7
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.016604900360107 unshift: 0.016708135604858
Output for 5.3.6
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.015552997589111 unshift: 0.017224073410034
Output for 5.3.5
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.022886037826538 unshift: 0.020509004592896
Output for 5.3.4
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.020339965820312 unshift: 0.017754077911377
Output for 5.3.3
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.016637086868286 unshift: 0.016472101211548
Output for 5.3.2
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.016975879669189 unshift: 0.017714977264404
Output for 5.3.1
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.016855001449585 unshift: 0.016574859619141
Output for 5.3.0
Deprecated: Call-time pass-by-reference has been deprecated in /in/ViK3K on line 16 splice: 0.033144950866699 unshift: 0.017222881317139