3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function delta($prefix, $t1) { $t2 = microtime(true); printf("%s %0.6f\n", $prefix, ($t2 - $t1) * 1000); } function genarray() { $a = array(); for($i = 0; $i < 10000; $i++) { $a[] = $i; } return($a); } function noref($a) { for($i = 0; $i < 10000; $i++) { is_array($a); } } function byref($a) { for($i = 0; $i < 10000; $i++) { is_array(&$a); } } $a = genarray(); $t1 = microtime(true); noref($a); delta("NoRef:", $t1); $t3 = microtime(true); byref($a); delta("ByRef:", $t3);
Output for 5.4.0 - 5.4.23
Fatal error: Call-time pass-by-reference has been removed in /in/2SXYZ on line 24
Process exited with code 255.
Output for 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 0.981092 ByRef: 1.666069
Output for 5.3.28
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.241922 ByRef: 3.203869
Output for 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.227856 ByRef: 2.596140
Output for 5.3.26
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.804113 ByRef: 2.702951
Output for 5.3.25
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.235962 ByRef: 2.826929
Output for 5.3.24
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.304150 ByRef: 2.614021
Output for 5.3.23
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.245975 ByRef: 3.088951
Output for 5.3.22
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.939058 ByRef: 3.010988
Output for 5.3.21
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.676083 ByRef: 3.247976
Output for 5.3.20
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.647949 ByRef: 2.601147
Output for 5.3.19
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.214981 ByRef: 2.546072
Output for 5.3.18
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.766920 ByRef: 2.903223
Output for 5.3.17
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.368046 ByRef: 2.844810
Output for 5.3.16
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.008915 ByRef: 3.437996
Output for 5.3.15
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.888037 ByRef: 4.859924
Output for 5.3.14
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.681971 ByRef: 3.655910
Output for 5.3.13
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.440048 ByRef: 2.966881
Output for 5.3.12
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.499891 ByRef: 3.109932
Output for 5.3.11
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.397133 ByRef: 3.617048
Output for 5.3.10
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.230955 ByRef: 2.692938
Output for 5.3.9
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.241922 ByRef: 2.753019
Output for 5.3.8
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.308918 ByRef: 3.737926
Output for 5.3.7
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.459122 ByRef: 3.055096
Output for 5.3.6
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.230001 ByRef: 2.570868
Output for 5.3.5
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.638174 ByRef: 4.169941
Output for 5.3.4
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.501083 ByRef: 3.602982
Output for 5.3.3
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.658201 ByRef: 3.337860
Output for 5.3.2
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.420975 ByRef: 2.853870
Output for 5.3.1
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.973867 ByRef: 3.698111
Output for 5.3.0
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.443148 ByRef: 3.396988