3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startYear = 2014; $currentYear = 2014; $modYear = 2; $nextYear = $currentYear + ($modYear - (($currentYear - $startYear) % $modYear)); echo $nextYear;

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.0150.00018.56
8.3.50.0160.00521.91
8.3.40.0090.00618.54
8.3.30.0040.01119.09
8.3.20.0050.00220.39
8.3.10.0040.00423.65
8.3.00.0060.00319.27
8.2.180.0120.00318.05
8.2.170.0100.00322.96
8.2.160.0160.00320.39
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00822.09
8.2.110.0110.00722.07
8.2.100.0040.00817.91
8.2.90.0040.00417.63
8.2.80.0090.00018.80
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0040.00417.99
8.2.20.0050.00217.68
8.2.10.0050.00218.18
8.2.00.0070.00017.66
8.1.280.0140.00725.92
8.1.270.0060.00323.79
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00320.27
8.1.230.0040.00717.83
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00416.88
8.1.180.0070.00018.10
8.1.170.0110.00018.38
8.1.160.0000.00721.99
8.1.150.0040.00418.70
8.1.140.0070.00017.38
8.1.130.0030.00317.82
8.1.120.0020.00517.41
8.1.110.0040.00417.41
8.1.100.0030.00417.28
8.1.90.0040.00417.36
8.1.80.0000.00717.29
8.1.70.0030.00317.38
8.1.60.0040.00417.49
8.1.50.0040.00417.50
8.1.40.0000.00717.30
8.1.30.0000.00817.41
8.1.20.0000.00717.47
8.1.10.0050.00217.49
8.1.00.0040.00417.35
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0070.00018.35
8.0.270.0000.00817.16
8.0.260.0040.00417.16
8.0.250.0000.00716.82
8.0.240.0070.00016.84
8.0.230.0030.00316.87
8.0.220.0070.00016.93
8.0.210.0000.00716.79
8.0.200.0040.00416.93
8.0.190.0030.00616.93
8.0.180.0040.00416.95
8.0.170.0000.00816.84
8.0.160.0000.00716.90
8.0.150.0000.00716.80
8.0.140.0000.00716.74
8.0.130.0000.00513.35
8.0.120.0040.00416.82
8.0.110.0000.00816.81
8.0.100.0070.00016.78
8.0.90.0000.00716.94
8.0.80.0120.00616.90
8.0.70.0040.00416.77
8.0.60.0040.00416.76
8.0.50.0000.00716.66
8.0.30.0090.01317.21
8.0.20.0090.01017.40
8.0.10.0040.00416.85
8.0.00.0090.00816.66
7.4.330.0000.00515.02
7.4.320.0030.00316.36
7.4.300.0070.00016.42
7.4.290.0030.00316.44
7.4.280.0030.00416.54
7.4.270.0030.00316.54
7.4.260.0000.00716.45
7.4.250.0030.00316.50
7.4.240.0020.00516.51
7.4.230.0030.00316.54
7.4.220.0120.01216.35
7.4.210.0030.01016.43
7.4.200.0000.00716.59
7.4.160.0130.00316.62
7.4.150.0150.00417.40
7.4.140.0080.00817.86
7.4.130.0110.00616.32
7.4.120.0110.00716.39
7.4.110.0130.00316.18
7.4.100.0140.00316.36
7.4.90.0030.01416.42
7.4.80.0050.01119.39
7.4.70.0070.01316.43
7.4.60.0000.01816.27
7.4.50.0090.00016.35
7.4.40.0110.00716.48
7.4.30.0130.00316.50
7.4.00.0050.01114.89
7.3.330.0020.00413.11
7.3.320.0050.00013.11
7.3.310.0000.00716.13
7.3.300.0060.00316.22
7.3.290.0060.01016.26
7.3.280.0120.00516.21
7.3.270.0100.00717.40
7.3.260.0100.00716.21
7.3.250.0080.01416.15
7.3.240.0110.01116.45
7.3.230.0130.00316.39
7.3.210.0120.00616.38
7.3.200.0090.00919.39
7.3.190.0060.01016.19
7.3.180.0060.00916.24
7.3.170.0110.00716.34
7.3.160.0150.00616.50
7.3.120.0040.01514.83
7.3.110.0030.01014.69
7.3.100.0040.00814.65
7.3.90.0000.00914.65
7.3.80.0060.00314.69
7.3.70.0060.00614.47
7.3.60.0040.01214.47
7.3.50.0030.01014.33
7.3.40.0000.01514.64
7.3.30.0030.00614.70
7.3.20.0150.00016.38
7.3.10.0090.00916.60
7.3.00.0160.00316.61
7.2.330.0060.01216.47
7.2.320.0070.01016.23
7.2.310.0090.00616.57
7.2.300.0060.01216.41
7.2.290.0170.00716.63
7.2.250.0040.01414.41
7.2.240.0040.01215.01
7.2.230.0030.00714.76
7.2.220.0100.00315.09
7.2.210.0030.01014.93
7.2.200.0000.01214.56
7.2.190.0040.01114.92
7.2.180.0100.00314.91
7.2.170.0090.00614.98
7.2.130.0150.01216.88
7.2.120.0130.00316.98
7.2.110.0110.00416.72
7.2.100.0060.00316.46
7.2.90.0070.01016.58
7.2.80.0040.01416.78
7.2.70.0200.00016.71
7.2.60.0080.00416.64
7.2.50.0090.00616.51
7.2.40.0140.00016.79
7.2.30.0120.00316.90
7.2.20.0060.01016.81
7.2.10.0060.00616.72
7.2.00.0040.00816.85
7.1.330.0030.01315.57
7.1.320.0100.00315.54
7.1.310.0040.01115.71
7.1.300.0100.00615.64
7.1.290.0100.00315.66
7.1.280.0030.01015.88
7.1.270.0060.00615.75
7.1.260.0070.00715.51
7.1.250.0130.00515.51
7.1.70.0040.00816.96
7.1.60.0070.01719.11
7.1.50.0290.00016.46
7.1.00.0070.07322.36
7.0.200.0050.00316.69
7.0.140.0070.07021.95
7.0.60.0100.07319.96
7.0.50.0100.06317.79
7.0.40.0130.05720.04
7.0.30.0400.06720.17
7.0.20.0130.04320.19
7.0.10.0030.04720.20
7.0.00.0100.08320.00
5.6.280.0030.07321.07
5.6.210.0170.07020.54
5.6.200.0070.03718.15
5.6.190.0030.09020.61
5.6.180.0270.05720.77
5.6.170.0230.04020.52
5.6.160.0100.04020.46
5.6.150.0070.08018.08
5.6.140.0030.04018.07
5.6.130.0100.07718.16
5.6.120.0030.06321.01
5.6.110.0100.08321.03
5.6.100.0100.08021.00
5.6.90.0030.08720.99
5.6.80.0200.07020.37
5.6.70.4170.03320.27
5.5.350.0100.08320.34
5.5.340.0070.07717.99
5.5.330.0170.06320.21
5.5.320.0400.05720.31
5.5.310.0230.08720.29
5.5.300.0000.04017.92
5.5.290.0100.07717.91
5.5.280.0130.05020.79
5.5.270.0130.05320.87
5.5.260.0030.08020.86
5.5.250.0030.08020.77
5.5.240.0230.07720.25
5.4.450.1000.06319.45
5.4.440.0830.05319.52
5.4.430.0900.07319.13
5.4.420.0800.04319.13
5.4.410.0970.04719.32
5.4.400.0130.04719.32
5.4.390.0730.06019.22
5.4.380.0730.06019.28
5.4.370.0770.05319.22
5.4.360.0800.05718.80
5.4.350.0800.05719.32
5.4.340.0060.03511.96
5.4.320.0100.03312.45
5.4.310.0050.03912.45
5.4.300.0070.03612.45
5.4.290.0070.03612.45
5.4.280.0080.03312.35
5.4.270.0050.04412.34
5.4.260.0070.04212.35
5.4.250.0070.03912.34
5.4.240.0040.03812.34
5.4.230.0060.03712.34
5.4.220.0050.03612.34
5.4.210.0080.03512.34
5.4.200.0030.03912.34
5.4.190.0050.03612.34
5.4.180.0040.03712.33
5.4.170.0080.03412.35
5.4.160.0050.03612.34
5.4.150.0030.03812.34
5.4.140.0050.03912.02
5.4.130.0050.03512.01
5.4.120.0050.03511.96
5.4.110.0080.03611.96
5.4.100.0060.03511.96
5.4.90.0060.03711.96
5.4.80.0050.03711.96
5.4.70.0060.03411.96
5.4.60.0070.03411.96
5.4.50.0090.03111.96
5.4.40.0050.03611.95
5.4.30.0040.03711.95
5.4.20.0070.03811.95
5.4.10.0040.03611.95
5.4.00.0090.04011.43
5.3.290.0070.04312.80
5.3.280.0050.04412.71
5.3.270.0060.03812.73
5.3.260.0080.03712.72
5.3.250.0080.04112.72
5.3.240.0070.03412.72
5.3.230.0040.03912.71
5.3.220.0080.04112.68
5.3.210.0100.04612.68
5.3.200.0050.03612.68
5.3.190.0060.03612.68
5.3.180.0070.03712.68
5.3.170.0080.03412.67
5.3.160.0090.03312.68
5.3.150.0050.03812.67
5.3.140.0080.03512.66
5.3.130.0080.03712.66
5.3.120.0060.03812.66
5.3.110.0070.03612.66
5.3.100.0030.03812.12
5.3.90.0050.03512.09
5.3.80.0110.04112.07
5.3.70.0070.03512.07
5.3.60.0080.04212.06
5.3.50.0030.03812.00
5.3.40.0070.03612.00
5.3.30.0050.03711.94
5.3.20.0070.03811.72
5.3.10.0030.03511.69
5.3.00.0030.04111.67
5.2.170.0050.0349.18
5.2.160.0080.0259.17
5.2.150.0040.0309.18
5.2.140.0100.0299.17
5.2.130.0040.0289.14
5.2.120.0020.0309.13
5.2.110.0050.0289.14
5.2.100.0050.0309.14
5.2.90.0050.0289.13
5.2.80.0050.0299.13
5.2.70.0040.0309.13
5.2.60.0080.0269.08
5.2.50.0050.0299.05
5.2.40.0070.0269.03
5.2.30.0050.0309.00
5.2.20.0030.0308.99
5.2.10.0070.0268.93
5.2.00.0080.0348.79
5.1.60.0040.0248.08
5.1.50.0040.0248.07
5.1.40.0030.0308.05
5.1.30.0040.0258.41
5.1.20.0060.0248.42
5.1.10.0050.0248.15
5.1.00.0050.0348.15
5.0.50.0050.0196.63
5.0.40.0030.0196.49
5.0.30.0050.0306.30
5.0.20.0040.0226.27
5.0.10.0020.0216.25
5.0.00.0050.0286.24
4.4.90.0040.0144.77
4.4.80.0060.0224.75
4.4.70.0020.0164.76
4.4.60.0010.0254.76
4.4.50.0030.0154.77
4.4.40.0010.0274.71
4.4.30.0030.0144.76
4.4.20.0040.0204.84
4.4.10.0040.0134.85
4.4.00.0020.0304.76
4.3.110.0050.0204.67
4.3.100.0020.0154.66
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0040.0174.63
4.3.50.0030.0154.63
4.3.40.0000.0264.54
4.3.30.0050.0133.30
4.3.20.0020.0213.27
4.3.10.0020.0153.23
4.3.00.0130.0206.71

preferences:
50.96 ms | 401 KiB | 5 Q