3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($x) { $x++ } $bar = 1; foo($bar); // 1 foo(&$bar); // 2, Fatal >= 5.4.

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.07018.94
5.4.260.0070.06019.03
5.4.250.0130.07019.00
5.4.240.0170.05718.84
5.4.230.0170.06318.89
5.4.220.0230.04319.02
5.4.210.0030.06018.90
5.4.200.0070.05718.77
5.4.190.0100.07318.95
5.4.180.0030.08318.80
5.4.170.0170.06718.95
5.4.160.0200.06718.75
5.4.150.0170.06718.89
5.4.140.0170.06016.47
5.4.130.0170.05716.56
5.4.120.0130.06716.43
5.4.110.0100.07016.41
5.4.100.0200.04716.63
5.4.90.0070.07016.49
5.4.80.0200.06316.54
5.4.70.0170.06316.46
5.4.60.0200.04016.49
5.4.50.0070.07316.59
5.4.40.0130.06716.60
5.4.30.0070.05316.44
5.4.20.0130.05716.38
5.4.10.0070.08016.61
5.4.00.0100.06015.82
5.3.280.0170.05014.75
5.3.270.0170.07014.68
5.3.260.0070.07314.77
5.3.250.0230.04314.73
5.3.240.0130.06714.43
5.3.230.0070.05314.68
5.3.220.0070.06714.56
5.3.210.0100.07314.59
5.3.200.0030.05714.39
5.3.190.0170.04314.63
5.3.180.0100.05314.74
5.3.170.0100.05014.65
5.3.160.0100.05714.74
5.3.150.0130.04714.65
5.3.140.0200.06714.57
5.3.130.0130.08014.52
5.3.120.0130.07014.59
5.3.110.0130.06714.45
5.3.100.0100.06014.12
5.3.90.0130.07013.92
5.3.80.0070.06014.11
5.3.70.0130.04314.09
5.3.60.0170.05714.08
5.3.50.0070.05714.01
5.3.40.0100.05313.95
5.3.30.0100.05313.97
5.3.20.0230.06013.87
5.3.10.0130.06313.83
5.3.00.0100.06013.54
5.2.170.0100.04311.21
5.2.160.0100.06011.32
5.2.150.0070.04711.09
5.2.140.0070.05710.96
5.2.130.0100.05310.92
5.2.120.0130.04311.16
5.2.110.0200.04311.16
5.2.100.0100.03711.25
5.2.90.0030.04310.92
5.2.80.0030.04311.18
5.2.70.0100.04311.25
5.2.60.0070.05711.06
5.2.50.0070.04711.11
5.2.40.0070.04011.07
5.2.30.0070.05310.97
5.2.20.0170.04010.95
5.2.10.0130.04710.83
5.2.00.0030.05710.80
5.1.60.0070.03310.05
5.1.50.0130.04010.23
5.1.40.0000.04310.06
5.1.30.0130.04710.30
5.1.20.0000.04310.35
5.1.10.0000.05710.02
5.1.00.0200.02010.15
5.0.50.0130.0308.59
5.0.40.0030.0438.47
5.0.30.0030.0538.19
5.0.20.0100.0278.21
5.0.10.0030.0408.36
5.0.00.0130.0478.16
4.4.90.0100.0236.89
4.4.80.0170.0136.89
4.4.70.0070.0236.89
4.4.60.0000.0336.89
4.4.50.0070.0176.89
4.4.40.0030.0406.89
4.4.30.0070.0206.89
4.4.20.0070.0236.89
4.4.10.0030.0336.89
4.4.00.0000.0406.89
4.3.110.0070.0276.89
4.3.100.0070.0206.89
4.3.90.0030.0276.89
4.3.80.0030.0436.89
4.3.70.0070.0236.89
4.3.60.0030.0206.89
4.3.50.0070.0276.89
4.3.40.0070.0336.89
4.3.30.0000.0306.89
4.3.20.0070.0206.89
4.3.10.0070.0236.89
4.3.00.0070.0237.42

preferences:
133.71 ms | 1386 KiB | 7 Q