3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AClass { public static $prop = "Hi"; } function assignRef (&$ref) { $ref = &AClass::$prop; echo "inside assignRef: $ref\n"; } $ref = "Hello"; assignRef(&$ref); echo "outside: $ref\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.270.0100.06018.92
5.4.260.0230.04318.80
5.4.250.0100.06018.91
5.4.240.0130.05018.97
5.4.230.0170.06018.95
5.4.220.0100.06019.02
5.4.210.0230.04718.84
5.4.200.0130.05019.10
5.4.190.0170.05018.84
5.4.180.0230.06018.99
5.4.170.0100.06019.00
5.4.160.0170.04718.98
5.4.150.0130.06719.02
5.4.140.0030.08016.45
5.4.130.0100.04716.44
5.4.120.0130.06716.52
5.4.110.0070.05716.53
5.4.100.0130.04716.71
5.4.90.0000.05716.60
5.4.80.0200.04016.43
5.4.70.0100.04716.46
5.4.60.0100.04716.39
5.4.50.0100.06716.59
5.4.40.0130.05716.42
5.4.30.0030.05316.42
5.4.20.0170.04016.38
5.4.10.0070.05316.39
5.4.00.0170.04315.88
5.3.290.0020.04312.80
5.3.280.0030.05314.67
5.3.270.0100.06014.61
5.3.260.0130.04714.82
5.3.250.0070.05314.58
5.3.240.0130.07014.43
5.3.230.0000.06314.69
5.3.220.0170.06714.74
5.3.210.0230.05014.55
5.3.200.0170.06314.64
5.3.190.0170.06314.75
5.3.180.0130.05014.55
5.3.170.0070.05014.78
5.3.160.0130.06314.53
5.3.150.0070.07014.46
5.3.140.0230.06314.63
5.3.130.0100.06714.71
5.3.120.0100.05714.54
5.3.110.0200.04314.62
5.3.100.0000.07314.12
5.3.90.0130.07014.23
5.3.80.0100.04314.01
5.3.70.0130.05713.84
5.3.60.0170.06013.82
5.3.50.0100.06314.12
5.3.40.0000.06014.13
5.3.30.0130.04713.80
5.3.20.0100.06013.72
5.3.10.0070.06013.61
5.3.00.0170.04713.80
5.2.170.0100.04711.23
5.2.160.0070.04011.31
5.2.150.0100.04711.23
5.2.140.0070.05311.36
5.2.130.0070.04711.09
5.2.120.0130.05011.07
5.2.110.0030.04311.19
5.2.100.0100.04311.18
5.2.90.0030.05011.08
5.2.80.0100.06011.27
5.2.70.0170.04711.08
5.2.60.0030.04711.04
5.2.50.0130.04011.20
5.2.40.0100.03710.90
5.2.30.0100.05310.95
5.2.20.0030.04711.14
5.2.10.0100.04710.86
5.2.00.0030.04010.79
5.1.60.0030.0479.98
5.1.50.0170.0409.84
5.1.40.0070.0409.89
5.1.30.0070.05310.24
5.1.20.0030.04010.43
5.1.10.0070.0409.90
5.1.00.0070.0509.99
5.0.50.0070.0408.55
5.0.40.0070.0378.47
5.0.30.0000.0478.20
5.0.20.0070.0238.15
5.0.10.0030.0408.15
5.0.00.0030.0478.22
4.4.90.0070.0237.19
4.4.80.0030.0307.19
4.4.70.0030.0307.19
4.4.60.0000.0277.19
4.4.50.0030.0237.19
4.4.40.0100.0407.19
4.4.30.0000.0307.19
4.4.20.0000.0337.19
4.4.10.0070.0277.18
4.4.00.0130.0307.19
4.3.110.0070.0207.19
4.3.100.0070.0277.19
4.3.90.0030.0277.19
4.3.80.0030.0377.19
4.3.70.0030.0207.19
4.3.60.0070.0177.19
4.3.50.0030.0307.19
4.3.40.0000.0377.19
4.3.30.0030.0307.19
4.3.20.0070.0207.19
4.3.10.0000.0337.19
4.3.00.0000.0336.71

preferences:
142.83 ms | 1386 KiB | 7 Q