3v4l.org

run code in 150+ 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: 2.166986 ByRef: 2.537966
Output for 5.3.28
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 8.319139 ByRef: 6.591082
Output for 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.768827 ByRef: 2.937078
Output for 5.3.26
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.710104 ByRef: 4.548073
Output for 5.3.25
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.300097 ByRef: 2.451897
Output for 5.3.24
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.350880 ByRef: 2.534866
Output for 5.3.23
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.573086 ByRef: 3.443956
Output for 5.3.22
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.742840 ByRef: 2.905130
Output for 5.3.21
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.606941 ByRef: 2.671003
Output for 5.3.20
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.893209 ByRef: 4.825115
Output for 5.3.19
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.522945 ByRef: 6.026030
Output for 5.3.18
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 3.235102 ByRef: 5.295992
Output for 5.3.17
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.647949 ByRef: 2.608061
Output for 5.3.16
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.706123 ByRef: 3.154039
Output for 5.3.15
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.410007 ByRef: 2.884150
Output for 5.3.14
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.461983 ByRef: 3.521919
Output for 5.3.13
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.539946 ByRef: 2.628088
Output for 5.3.12
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.311064 ByRef: 3.049850
Output for 5.3.11
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.608849 ByRef: 3.051996
Output for 5.3.10
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.512051 ByRef: 2.626181
Output for 5.3.9
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.632141 ByRef: 4.590988
Output for 5.3.8
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.717972 ByRef: 5.044937
Output for 5.3.7
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.602100 ByRef: 4.626989
Output for 5.3.6
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.474070 ByRef: 5.394936
Output for 5.3.5
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 3.313065 ByRef: 5.254030
Output for 5.3.4
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.899170 ByRef: 10.168076
Output for 5.3.3
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.140999 ByRef: 4.374981
Output for 5.3.2
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 1.601934 ByRef: 2.609968
Output for 5.3.1
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.503872 ByRef: 3.086805
Output for 5.3.0
Deprecated: Call-time pass-by-reference has been deprecated in /in/2SXYZ on line 24 NoRef: 2.251863 ByRef: 2.599001