3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = 0; $i = 2; $j = 4; for ( ; ++$i, $i < $j; ) {       $result = $i * $j++; } echo $result;

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.310.0370.04018.98
5.4.300.0200.05019.15
5.4.290.0300.03319.21
5.4.280.0270.04718.98
5.4.270.0300.04019.22
5.4.260.0270.03319.15
5.4.250.0300.03719.16
5.4.240.0370.05319.16
5.4.230.0270.04019.14
5.4.220.0330.07019.22
5.4.210.0370.04019.14
5.4.200.0430.05718.85
5.4.190.0230.04018.86
5.4.180.0370.06719.23
5.4.170.0270.04719.19
5.4.160.0270.06019.29
5.4.150.0300.03318.83
5.4.140.0230.04016.26
5.4.130.0300.06316.50
5.4.120.0370.06716.53
5.4.110.0300.07016.54
5.4.100.0200.04316.57
5.4.90.0230.04016.54
5.4.80.0230.05716.50
5.4.70.0230.04316.50
5.4.60.0270.03316.48
5.4.50.0370.06316.43
5.4.40.0400.05316.53
5.4.30.0330.06316.39
5.4.20.0400.06016.42
5.4.10.0300.05316.53
5.4.00.0400.06015.80
5.3.280.0300.05714.43
5.3.270.0270.04314.63
5.3.260.0270.07314.69
5.3.250.0230.04014.66
5.3.240.0330.06314.64
5.3.230.0370.06314.55
5.3.220.0300.04714.59
5.3.210.0300.07014.41
5.3.200.0230.05014.51
5.3.190.0270.04714.52
5.3.180.0300.07014.43
5.3.170.0300.06314.54
5.3.160.0230.06014.40
5.3.150.0370.06014.40
5.3.140.0270.06014.41
5.3.130.0470.05014.45
5.3.120.0370.04014.50
5.3.110.0370.06314.64
5.3.100.0330.06314.10
5.3.90.0270.04714.11
5.3.80.0270.07014.10
5.3.70.0200.05014.10
5.3.60.0230.04014.10
5.3.50.0270.03314.10
5.3.40.0200.06714.10
5.3.30.0270.06314.10
5.3.20.0270.06314.10
5.3.10.0300.06714.10
5.3.00.0270.06014.10
5.2.170.0270.05714.10
5.2.160.0200.04014.10
5.2.150.0170.04314.10
5.2.140.0230.04714.10
5.2.130.0270.05714.10
5.2.120.0300.04714.10
5.2.110.0270.04714.10
5.2.100.0200.04714.10
5.2.90.0230.04314.10
5.2.80.0230.03014.10
5.2.70.0200.06014.10
5.2.60.0230.04714.10
5.2.50.0200.03714.10
5.2.40.0130.05714.10
5.2.30.0130.05714.10
5.2.20.0230.05314.10
5.2.10.0270.02314.10
5.2.00.0100.04714.10
5.1.60.0170.03714.10
5.1.50.0100.04714.10
5.1.40.0170.03314.10
5.1.30.0230.05014.10
5.1.20.0200.03314.10
5.1.10.0200.05314.10
5.1.00.0130.05314.10
5.0.50.0070.02714.10
5.0.40.0100.03014.10
5.0.30.0070.04714.10
5.0.20.0130.02314.10
5.0.10.0070.04714.10
5.0.00.0130.03714.10
4.4.90.0030.03014.10
4.4.80.0070.03714.10
4.4.70.0100.01714.10
4.4.60.0130.03014.10
4.4.50.0100.02714.10
4.4.40.0130.04714.10
4.4.30.0030.02714.10
4.4.20.0100.02314.10
4.4.10.0070.02314.10
4.4.00.0070.03014.10
4.3.110.0100.02014.10
4.3.100.0100.02014.10
4.3.90.0100.01714.10
4.3.80.0100.02714.10
4.3.70.0100.03014.10
4.3.60.0070.02714.10
4.3.50.0100.02314.10
4.3.40.0130.02314.10
4.3.30.0030.03714.10
4.3.20.0070.01714.10
4.3.10.0070.03014.10
4.3.00.0100.02714.10

preferences:
141.35 ms | 1394 KiB | 7 Q