3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($a, $b) { return $a + $b; } for ($i = 0; $i < 100000; i++) { test($i, $i + 1); }

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.260.0100.05018.74
5.4.250.0070.05718.87
5.4.240.0100.07019.05
5.4.230.0170.07318.75
5.4.220.0170.07318.93
5.4.210.0170.06718.97
5.4.200.0100.05018.96
5.4.190.0000.06018.86
5.4.180.0100.04718.92
5.4.170.0130.05018.98
5.4.160.0100.04718.91
5.4.150.0170.04318.72
5.4.140.0100.04716.38
5.4.130.0030.05016.55
5.4.120.0130.04316.35
5.4.110.0030.05716.30
5.4.100.0170.03716.59
5.4.90.0070.05016.33
5.4.80.0000.05316.60
5.4.70.0070.05016.36
5.4.60.0070.05016.56
5.4.50.0070.05316.50
5.4.40.0170.05716.48
5.4.30.0130.05716.40
5.4.20.0130.04316.42
5.4.10.0070.05016.48
5.4.00.0100.04715.94
5.3.280.0130.06314.75
5.3.270.0170.04314.59
5.3.260.0030.05314.64
5.3.250.0100.04714.82
5.3.240.0070.06014.69
5.3.230.0070.05014.50
5.3.220.0100.04714.63
5.3.210.0170.04714.63
5.3.200.0070.04714.54
5.3.190.0130.04714.65
5.3.180.0070.06314.79
5.3.170.0000.05714.74
5.3.160.0200.06014.74
5.3.150.0030.05314.62
5.3.140.0130.06014.63
5.3.130.0000.07014.63
5.3.120.0070.05714.58
5.3.110.0000.06714.38
5.3.100.0070.04714.05
5.3.90.0070.04714.02
5.3.80.0030.05314.11
5.3.70.0070.07014.21
5.3.60.0070.05314.08
5.3.50.0070.04714.04
5.3.40.0000.05314.16
5.3.30.0070.06014.06
5.3.20.0130.04313.91
5.3.10.0100.04313.63
5.3.00.0100.04713.47
5.2.170.0070.04011.14
5.2.160.0070.03711.09
5.2.150.0030.04311.21
5.2.140.0070.05011.11
5.2.130.0070.03711.05
5.2.120.0030.04011.05
5.2.110.0100.03711.19
5.2.100.0000.04311.17
5.2.90.0030.05311.09
5.2.80.0100.04011.09
5.2.70.0000.04310.99
5.2.60.0000.04311.23
5.2.50.0070.03711.19
5.2.40.0000.04010.99
5.2.30.0100.03711.04
5.2.20.0100.03710.78
5.2.10.0070.03710.94
5.2.00.0000.06010.73
5.1.60.0070.03310.00
5.1.50.0030.0379.98
5.1.40.0030.03310.04
5.1.30.0070.03010.40
5.1.20.0030.03710.44
5.1.10.0130.02710.13
5.1.00.0070.03310.08
5.0.50.0000.0308.59
5.0.40.0030.0238.36
5.0.30.0030.0408.05
5.0.20.0030.0278.11
5.0.10.0000.0308.26
5.0.00.0000.0438.23
4.4.90.0070.0176.20
4.4.80.0000.0236.20
4.4.70.0070.0276.18
4.4.60.0000.0236.15
4.4.50.0030.0306.13
4.4.40.0070.0336.06
4.4.30.0030.0175.85
4.4.20.0030.0205.96
4.4.10.0000.0235.89
4.4.00.0030.0305.79
4.3.110.0000.0205.85
4.3.100.0070.0175.70
4.3.90.0030.0205.81
4.3.80.0000.0435.71
4.3.70.0070.0175.87
4.3.60.0000.0205.73
4.3.50.0030.0205.73
4.3.40.0000.0375.70
4.3.30.0000.0305.70
4.3.20.0000.0275.70
4.3.10.0030.0205.70
4.3.00.0000.0237.46

preferences:
143.36 ms | 1386 KiB | 7 Q