3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'Duane'; $monthsAtMSE = 8; $loopCount = 10; while($loopCount > 0){ if($monthsAtMSE < 12){ echo $name . " has been at MSE for " . $monthsAtMSE . " months <br>"; } else{ $yearCount = intVal($monthsAtMSE / 12); echo $name . " has been at MSE for " . $yearCount . " years <br>"; } $monthsAtMSE = $monthsAtMSE + 1; $loopCount = $loopCount - 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)
8.3.60.0130.00718.31
8.3.50.0060.01321.14
8.3.40.0130.00718.68
8.3.30.0070.01418.92
8.3.20.0040.00420.16
8.3.10.0030.01021.90
8.3.00.0140.00422.39
8.2.180.0140.00716.38
8.2.170.0070.00722.96
8.2.160.0190.00019.21
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0060.00826.16
8.2.120.0110.00419.23
8.2.110.0060.00322.24
8.2.100.0090.00319.52
8.2.90.0030.00619.18
8.2.80.0000.00717.97
8.2.70.0030.00617.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00420.01
8.2.30.0070.00017.91
8.2.20.0070.00017.66
8.2.10.0000.00717.69
8.2.00.0040.00417.63
8.1.280.0090.01225.92
8.1.270.0150.00322.01
8.1.260.0150.00426.35
8.1.250.0100.00028.09
8.1.240.0050.00523.83
8.1.230.0070.00418.87
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.13
8.1.190.0000.00817.17
8.1.180.0060.00318.41
8.1.170.0050.00318.61
8.1.160.0000.00722.14
8.1.150.0000.00718.55
8.1.140.0040.00417.45
8.1.130.0000.00717.82
8.1.120.0040.00417.52
8.1.110.0070.00017.41
8.1.100.0000.00717.49
8.1.90.0040.00417.44
8.1.80.0000.00717.47
8.1.70.0070.00017.32
8.1.60.0100.00017.58
8.1.50.0000.00717.39
8.1.40.0040.00417.40
8.1.30.0040.00417.54
8.1.20.0000.00817.66
8.1.10.0070.00017.52
8.1.00.0060.00317.43
8.0.300.0030.00318.77
8.0.290.0000.00717.13
8.0.280.0020.00518.45
8.0.270.0000.00717.13
8.0.260.0030.00316.69
8.0.250.0070.00016.92
8.0.240.0070.00017.01
8.0.230.0000.00716.93
8.0.220.0030.00316.88
8.0.210.0070.00016.89
8.0.200.0000.00816.86
8.0.190.0080.00016.99
8.0.180.0080.00016.91
8.0.170.0000.00816.91
8.0.160.0040.00416.79
8.0.150.0000.00716.83
8.0.140.0000.00716.74
8.0.130.0000.00913.40
8.0.120.0040.00416.83
8.0.110.0030.00616.85
8.0.100.0040.00416.88
8.0.90.0040.00416.95
8.0.80.0100.00816.89
8.0.70.0000.00716.84
8.0.60.0040.00416.77
8.0.50.0000.00816.78
8.0.30.0150.00816.95
8.0.20.0060.01317.40
8.0.10.0000.00716.90
8.0.00.0110.01116.83
7.4.330.0050.00015.00
7.4.320.0030.00616.17
7.4.300.0000.00616.49
7.4.290.0000.00816.48
7.4.280.0030.00316.48
7.4.270.0030.00316.50
7.4.260.0000.00716.54
7.4.250.0000.00816.55
7.4.240.0050.00316.54
7.4.230.0030.00316.66
7.4.220.0060.01316.45
7.4.210.0060.00916.54
7.4.200.0040.00316.51
7.4.190.0000.00716.49
7.4.160.0050.01116.54
7.4.150.0110.00717.40
7.4.140.0130.00717.86
7.4.130.0090.00916.53
7.4.120.0070.01116.55
7.4.110.0030.01316.30
7.4.100.0100.01316.47
7.4.90.0080.00816.40
7.4.80.0060.01619.39
7.4.70.0110.00616.42
7.4.60.0060.01016.43
7.4.50.0000.00816.38
7.4.40.0100.00322.77
7.4.30.0000.01616.43
7.4.00.0070.00414.95
7.3.330.0060.00013.21
7.3.320.0000.00513.04
7.3.310.0030.00316.42
7.3.300.0020.00516.34
7.3.290.0090.00616.29
7.3.280.0080.01116.36
7.3.270.0120.00817.40
7.3.260.0040.01216.30
7.3.250.0170.00516.61
7.3.240.0080.01016.61
7.3.230.0110.01416.39
7.3.210.0060.01216.59
7.3.200.0160.00719.39
7.3.190.0090.00916.26
7.3.180.0070.01016.22
7.3.170.0030.01416.32
7.3.160.0110.00716.31
7.3.120.0000.01514.89
7.2.330.0100.00716.75
7.2.320.0090.01316.85
7.2.310.0030.01316.28
7.2.300.0110.00516.79
7.2.290.0040.01116.73
7.2.00.0070.00319.56
7.1.100.0060.00617.91
7.1.70.0180.00317.28
7.1.60.0130.01319.82
7.1.50.0080.00317.11
7.1.00.0030.07322.29
7.0.200.0000.01016.70
7.0.140.0070.07021.97
7.0.60.0100.07319.93
7.0.50.0070.07317.89
7.0.40.0070.05019.96
7.0.30.0330.05720.04
7.0.20.0200.08720.12
7.0.10.0230.04720.12
7.0.00.0100.04020.16
5.6.280.0000.10020.76
5.6.210.0070.08020.54
5.6.200.0070.09018.18
5.6.190.0170.04320.68
5.6.180.3530.03720.43
5.6.170.0270.09320.62
5.6.160.0000.07020.40
5.6.150.0070.08018.18
5.6.140.0030.08318.14
5.6.130.0100.07718.09
5.6.120.0200.06721.02
5.6.110.0100.05321.13
5.6.100.0170.06721.00
5.6.90.0030.04321.06
5.6.80.0170.07020.50
5.6.70.0330.07320.36
5.5.350.0170.04720.45
5.5.340.0030.04017.96
5.5.330.0070.06020.47
5.5.320.0300.07720.20
5.5.310.0170.04320.30
5.5.300.0070.05017.94
5.5.290.0030.04318.01
5.5.280.0070.06020.87
5.5.270.0070.05020.79
5.5.260.0100.08020.76
5.5.250.0070.08320.54
5.5.240.0130.06320.07
5.4.450.0300.06019.10
5.4.440.0870.07019.54
5.4.430.0100.05319.23
5.4.420.0670.06319.48
5.4.410.0170.04719.35
5.4.400.1130.04718.69
5.4.390.0900.06718.71
5.4.380.0370.04718.72
5.4.370.0230.04318.54
5.4.360.0100.05318.72
5.4.350.0100.05718.61
5.4.340.0200.04718.66
5.4.320.0110.03812.45
5.4.310.0090.04312.45
5.4.300.0090.03312.46
5.4.290.0050.03912.45
5.4.280.0040.03712.35
5.4.270.0130.03812.35
5.4.260.0170.07318.82
5.4.250.0100.05318.84
5.4.240.0100.06318.87
5.4.230.0170.05318.72
5.4.220.0100.06318.77
5.4.210.0070.06318.94
5.4.200.0070.05718.92
5.4.190.0170.06018.89
5.4.180.0170.05018.69
5.4.170.0130.06018.89
5.4.160.0100.07718.88
5.4.150.0100.07719.02
5.4.140.0000.08316.53
5.4.130.0170.07016.25
5.4.120.0030.07316.49
5.4.110.0030.06316.52
5.4.100.0100.04716.39
5.4.90.0070.04716.23
5.4.80.0070.05716.24
5.4.70.0100.04716.48
5.4.60.0100.05016.40
5.4.50.0030.07716.21
5.4.40.0100.04716.30
5.4.30.0130.04716.36
5.4.20.0000.06016.46
5.4.10.0030.05716.39
5.4.00.0170.04015.72
5.3.290.0080.03712.80
5.3.280.0070.05314.29
5.3.270.0070.07714.62
5.3.260.0130.07314.70
5.3.250.0030.07314.30
5.3.240.0170.05714.39
5.3.230.0100.05014.61
5.3.220.0000.06014.27
5.3.210.0100.05014.42
5.3.200.0030.05314.56
5.3.190.0070.06714.45
5.3.180.0100.05314.58
5.3.170.0070.06014.58
5.3.160.0130.04714.43
5.3.150.0070.05314.41
5.3.140.0070.07014.44
5.3.130.0070.05014.55
5.3.120.0100.05014.42
5.3.110.0070.05314.40
5.3.100.0170.05014.04
5.3.90.0070.06014.03
5.3.80.0030.05714.03
5.3.70.0130.04314.03
5.3.60.0070.05013.91
5.3.50.0070.07313.98
5.3.40.0100.04713.81
5.3.30.0200.03713.92
5.3.20.0030.06713.57
5.3.10.0000.05713.65
5.3.00.0100.05313.55
5.2.170.0030.04311.17
5.2.160.0030.04311.07
5.2.150.0070.04010.90
5.2.140.0030.05711.14
5.2.130.0100.03311.25
5.2.120.0100.03311.02
5.2.110.0030.04011.11
5.2.100.0130.03710.93
5.2.90.0070.03711.21
5.2.80.0100.03711.11
5.2.70.0130.04711.20
5.2.60.0070.05310.89
5.2.50.0130.03311.04
5.2.40.0030.04310.98
5.2.30.0030.04010.97
5.2.20.0030.04010.87
5.2.10.0030.04310.94
5.2.00.0030.04010.80
5.1.60.0030.03310.06
5.1.50.0070.03010.04
5.1.40.0070.03310.17
5.1.30.0000.05010.28
5.1.20.0000.04010.30
5.1.10.0030.03710.28
5.1.00.0030.03710.12
5.0.50.0030.0308.49
5.0.40.0030.0278.42
5.0.30.0000.0478.26
5.0.20.0000.0308.34
5.0.10.0070.0238.11
5.0.00.0030.0408.19
4.4.90.0070.0177.25
4.4.80.0070.0207.25
4.4.70.0100.0237.25
4.4.60.0000.0377.25
4.4.50.0070.0177.25
4.4.40.0070.0277.25
4.4.30.0000.0237.25
4.4.20.0000.0277.17
4.4.10.0100.0207.11
4.4.00.0000.0377.06
4.3.110.0000.0237.00
4.3.100.0000.0336.97
4.3.90.0030.0206.97
4.3.80.0030.0306.97
4.3.70.0000.0276.97
4.3.60.0000.0336.97
4.3.50.0000.0236.97
4.3.40.0000.0336.97
4.3.30.0000.0236.97
4.3.20.0130.0176.97
4.3.10.0000.0236.93
4.3.00.0170.0137.18

preferences:
34.9 ms | 401 KiB | 5 Q