3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(&$param) { $param = 42; return $param; } $a = 23; echo \$a before calling foo(): $a\n"; $b = &foo($a); echo "\$a after the call to foo(): $a\n"; $b = 23; echo "\$a after touching the returned variable: $a\n"; echo "\$b : $b\n";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.250.0070.05712.39
5.4.240.0050.06812.39
5.4.230.0080.08212.39
5.4.220.0140.09712.39
5.4.210.0060.05512.38
5.4.200.0210.06912.38
5.4.190.0150.04112.38
5.4.180.0090.03612.38
5.4.170.0040.03912.39
5.4.160.0100.03812.38
5.4.150.0040.04512.38
5.4.140.0100.03712.07
5.4.130.0050.03812.05
5.4.120.0060.03712.02
5.4.110.0060.04012.01
5.4.100.0070.03612.02
5.4.90.0080.03612.02
5.4.80.0060.03612.01
5.4.70.0060.03412.01
5.4.60.0080.03512.01
5.4.50.0070.03412.01
5.4.40.0020.04011.99
5.4.30.0050.03911.99
5.4.20.0060.05511.99
5.4.10.0080.05211.99
5.4.00.0050.05611.49
5.3.280.0080.03912.71
5.3.270.0080.03912.72
5.3.260.0050.04312.72
5.3.250.0050.04112.72
5.3.240.0100.03912.72
5.3.230.0060.05412.71
5.3.220.0090.03612.68
5.3.210.0080.05112.68
5.3.200.0060.04512.68
5.3.190.0060.03812.67
5.3.180.0090.03312.68
5.3.170.0070.03512.67
5.3.160.0050.03612.67
5.3.150.0070.03812.68
5.3.140.0060.03512.66
5.3.130.0060.03912.66
5.3.120.0060.05512.66
5.3.110.0080.05812.66
5.3.100.0080.04312.11
5.3.90.0060.04112.09
5.3.80.0100.03312.07
5.3.70.0070.03512.08
5.3.60.0080.03912.06
5.3.50.0090.03412.01
5.3.40.0060.03812.01
5.3.30.0080.03311.97
5.3.20.0080.04211.76
5.3.10.0080.04311.72
5.3.00.0070.03511.70

preferences:
138.08 ms | 1394 KiB | 7 Q