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.0270.06719.31
5.4.250.0270.06719.18
5.4.240.0330.06719.19
5.4.230.0300.06719.31
5.4.220.0200.06319.09
5.4.210.0200.07319.12
5.4.200.0230.07019.31
5.4.190.0230.07318.94
5.4.180.0230.04719.13
5.4.170.0300.07019.05
5.4.160.0270.04719.07
5.4.150.0270.03319.12
5.4.140.0270.04316.29
5.4.130.0200.06316.50
5.4.120.0270.05716.28
5.4.110.0230.07316.58
5.4.100.0270.04316.51
5.4.90.0230.04316.26
5.4.80.0270.06316.55
5.4.70.0230.04716.52
5.4.60.0330.03316.43
5.4.50.0230.04716.23
5.4.40.0270.06316.43
5.4.30.0400.03016.43
5.4.20.0270.06016.55
5.4.10.0170.04316.48
5.4.00.0300.06015.95
5.3.280.0270.06014.66
5.3.270.0300.06314.72
5.3.260.0270.07314.51
5.3.250.0230.07014.59
5.3.240.0200.07714.61
5.3.230.0200.05714.61
5.3.220.0200.08014.48
5.3.210.0230.07714.60
5.3.200.0200.04714.56
5.3.190.0270.06714.48
5.3.180.0270.07314.58
5.3.170.0170.06714.68
5.3.160.0230.05314.70
5.3.150.0370.05714.64
5.3.140.0330.06014.64
5.3.130.0330.04714.55
5.3.120.0200.05314.45
5.3.110.0270.07314.59
5.3.100.0270.06714.13
5.3.90.0200.06013.93
5.3.80.0230.04313.99
5.3.70.0270.06713.94
5.3.60.0300.06313.91
5.3.50.0200.07013.85
5.3.40.0200.07714.16
5.3.30.0270.05313.92
5.3.20.0270.06013.73
5.3.10.0130.07013.70
5.3.00.0230.07013.81
5.2.170.0100.03712.34
5.2.160.0200.02712.34
5.2.150.0200.06012.34
5.2.140.0300.05312.34
5.2.130.0200.05712.34
5.2.120.0200.06312.34
5.2.110.0230.05012.34
5.2.100.0230.03712.34
5.2.90.0230.05312.34
5.2.80.0170.03312.34
5.2.70.0230.05712.34
5.2.60.0170.04312.34
5.2.50.0330.04712.34
5.2.40.0230.04012.34
5.2.30.0200.05712.34
5.2.20.0130.05012.34
5.2.10.0100.04012.34
5.2.00.0130.06012.34
5.1.60.0170.05312.34
5.1.50.0170.05312.34
5.1.40.0170.05312.34
5.1.30.0230.04712.34
5.1.20.0200.05312.34
5.1.10.0170.04312.34
5.1.00.0170.05012.34
5.0.50.0070.05012.34
5.0.40.0070.04312.34
5.0.30.0100.06312.34
5.0.20.0070.04012.34
5.0.10.0170.03312.34
5.0.00.0070.06012.34
4.4.90.0130.03012.34
4.4.80.0100.03712.34
4.4.70.0070.04012.34
4.4.60.0170.02312.34
4.4.50.0070.03712.34
4.4.40.0100.04712.34
4.4.30.0070.03312.34
4.4.20.0070.03712.34
4.4.10.0030.02712.34
4.4.00.0100.05012.34
4.3.110.0130.03012.34
4.3.100.0100.03312.34
4.3.90.0070.03712.34
4.3.80.0070.05312.34
4.3.70.0100.01712.34
4.3.60.0100.02312.34
4.3.50.0100.02012.34
4.3.40.0070.05312.34
4.3.30.0030.02712.34
4.3.20.0070.01712.34
4.3.10.0030.01712.34
4.3.00.0000.02012.34

preferences:
143.45 ms | 1398 KiB | 8 Q