3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTimeImmutable (); $resultmonth1 = $date->format("n"); $date = $date->modify("next month"); $resultmonth2 = $date->format("n"); var_dump($resultmonth1,$resultmonth2); ?>

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.0.30.0080.00917.30
8.0.20.0120.00717.21
8.0.00.0080.01116.83
7.4.160.0030.01216.70
7.4.150.0090.00916.76
7.4.140.0080.00916.58
7.4.130.0030.01416.54
7.4.120.0060.01116.75
7.4.110.0120.00616.68
7.4.100.0130.00316.74
7.4.90.0060.01216.71
7.4.80.0180.00316.82
7.4.70.0130.00916.41
7.4.60.0060.01116.51
7.4.50.0000.00816.62
7.4.40.0000.01316.52
7.4.30.0100.00616.40
7.4.10.0080.01415.21
7.4.00.0080.01015.06
7.3.280.0050.00916.32
7.3.270.0130.00416.64
7.3.260.0100.01316.43
7.3.250.0070.01016.29
7.3.240.0070.00716.72
7.3.230.0060.01116.14
7.3.210.0130.00316.46
7.3.200.0060.01219.39
7.3.190.0090.00916.60
7.3.180.0030.01316.65
7.3.170.0160.00016.38
7.3.160.0090.00616.62
7.3.130.0030.01514.92
7.3.120.0080.00914.98
7.3.110.0110.00714.88
7.3.100.0080.00814.91
7.3.90.0090.00615.01
7.3.80.0060.00714.83
7.3.70.0070.00814.81
7.3.60.0040.00915.06
7.3.50.0090.00614.90
7.3.40.0050.01114.79
7.3.30.0070.01014.80
7.3.20.0090.00716.77
7.3.10.0040.01116.87
7.3.00.0060.00416.68
7.2.330.0130.00716.47
7.2.320.0030.01316.58
7.2.310.0100.01016.58
7.2.300.0060.00916.60
7.2.290.0100.00616.71
7.2.260.0180.00314.95
7.2.250.0050.01115.17
7.2.240.0060.01115.15
7.2.230.0050.01115.11
7.2.220.0080.00815.21
7.2.210.0050.01015.13
7.2.200.0050.00615.16
7.2.190.0070.00915.15
7.2.180.0080.00815.09
7.2.170.0060.00814.84
7.2.160.0060.01115.00
7.2.150.0060.01016.91
7.2.140.0140.00216.89
7.2.130.0030.01417.02
7.2.120.0090.00716.98
7.2.110.0080.00816.89
7.2.100.0080.00417.03
7.2.90.0030.01516.86
7.2.80.0050.01116.83
7.2.70.0060.00617.05
7.2.60.0080.00816.94
7.2.50.0060.00816.98
7.2.40.0090.00617.06
7.2.30.0050.01016.92
7.2.20.0050.00716.99
7.2.10.0050.01017.08
7.2.00.0050.00717.83
7.1.330.0040.01115.95
7.1.320.0080.00615.90
7.1.310.0080.00515.96
7.1.300.0030.01115.78
7.1.290.0100.00415.85
7.1.280.0050.00815.99
7.1.270.0070.00915.86
7.1.260.0110.00316.01
7.1.250.0040.01115.79
7.1.240.0030.00815.97
7.1.230.0020.01116.03
7.1.220.0110.00415.90
7.1.210.0130.00015.72
7.1.200.0060.00715.84
7.1.190.0080.00815.83
7.1.180.0060.00815.82
7.1.170.0060.00816.00
7.1.160.0060.00715.94
7.1.150.0060.00815.84
7.1.140.0090.00315.96
7.1.130.0060.00815.80
7.1.120.0050.01115.86
7.1.110.0080.01015.84
7.1.100.0050.00716.48
7.1.90.0070.00916.06
7.1.80.0050.00916.04
7.1.70.0080.00516.21
7.1.60.0090.00817.12
7.1.50.0070.00916.22
7.1.40.0070.01015.95
7.1.30.0030.01215.90
7.1.20.0050.00615.99
7.1.10.0050.00815.89
7.1.00.0050.03218.03
7.0.330.0050.01015.35
7.0.320.0050.00615.30
7.0.310.0060.00915.39
7.0.300.0060.00715.39
7.0.290.0090.00415.39
7.0.280.0070.00715.46
7.0.270.0020.00915.31
7.0.260.0070.00515.53
7.0.250.0090.00715.55
7.0.240.0030.00715.64
7.0.230.0070.00715.70
7.0.220.0070.00715.39
7.0.210.0020.00815.56
7.0.200.0050.00915.92
7.0.190.0070.00515.50
7.0.180.0070.00715.49
7.0.170.0020.01215.48
7.0.160.0060.00715.69
7.0.150.0040.00915.45
7.0.140.0060.03117.62
7.0.130.0080.00715.62
7.0.120.0090.02417.71
7.0.110.0110.00515.41
7.0.100.0050.00915.56
7.0.90.0050.00915.57
7.0.80.0060.00515.56
7.0.70.0030.00815.51
7.0.60.0070.02716.94
7.0.50.0030.02516.39
7.0.40.0020.03815.69
7.0.30.0090.02615.80
7.0.20.0120.01715.73
7.0.10.0120.03015.76
7.0.00.0040.03715.72
5.6.400.0050.00714.73
5.6.390.0050.00714.55
5.6.380.0070.00514.44
5.6.370.0040.01114.31
5.6.360.0030.01014.29
5.6.350.0110.00314.47
5.6.340.0100.00014.42
5.6.330.0000.01114.42
5.6.320.0030.01214.44
5.6.310.0020.00814.32
5.6.300.0090.00614.57
5.6.290.0030.01214.61
5.6.280.0040.03816.50
5.6.270.0060.00814.40
5.6.260.0090.00714.38
5.6.250.0110.00514.50
5.6.240.0060.00514.66
5.6.230.0070.00414.53
5.6.220.0040.00814.38
5.6.210.0060.03116.55
5.6.200.0050.02815.66
5.6.190.0050.02716.33
5.6.180.0080.02316.39
5.6.170.0110.02316.46
5.6.160.0060.03716.50
5.6.150.0080.02915.56
5.6.140.0100.02915.80
5.6.130.0030.02215.73
5.6.120.0040.02016.67
5.6.110.0070.03216.74
5.6.100.0030.02216.57
5.6.90.0090.03116.68
5.6.80.0040.01816.31
5.6.70.0120.03016.40
5.6.60.0020.01214.58
5.6.50.0050.00514.25
5.6.40.0080.00314.30
5.6.30.0070.00614.34
5.6.20.0000.01314.40
5.6.10.0050.00714.31
5.6.00.0070.00714.44
5.5.380.0070.00314.36
5.5.370.0060.00714.29
5.5.360.0060.00414.21
5.5.350.0090.01816.39
5.5.340.0060.02415.72
5.5.330.0020.03216.37
5.5.320.0030.03716.39
5.5.310.0110.02116.26
5.5.300.0060.03015.52
5.5.290.0090.02715.54
5.5.280.0070.01816.50
5.5.270.0030.03216.33
5.5.260.0100.02916.50
5.5.250.0080.03116.38
5.5.240.0100.02516.26
5.5.230.0050.01014.21
5.5.220.0020.00914.13
5.5.210.0110.00514.19
5.5.200.0020.00814.14
5.5.190.0050.01114.23
5.5.180.0070.00514.41
5.5.170.0060.00614.12
5.5.160.0020.00914.21
5.5.150.0070.00714.35
5.5.140.0060.01114.36
5.5.130.0070.00614.16
5.5.120.0040.00914.20
5.5.110.0060.00914.31
5.5.100.0060.00714.15
5.5.90.0100.00214.32
5.5.80.0020.01114.35
5.5.70.0060.00814.23
5.5.60.0100.00314.15
5.5.50.0070.00714.17
5.5.40.0040.00514.29
5.5.30.0020.01014.01
5.5.20.0050.00714.30
5.5.10.0060.00814.13
5.5.00.0110.00314.49
5.4.450.0120.02114.31
5.4.440.0030.02614.28
5.4.430.0070.03014.30
5.4.420.0070.03014.22
5.4.410.0040.03014.36
5.4.400.0020.02014.15
5.4.390.0090.02714.07
5.4.380.0080.02314.10
5.4.370.0070.01914.20
5.4.360.0050.03114.19
5.4.350.0040.03114.08
5.4.340.0070.02814.21
5.4.330.0050.00711.71
5.4.320.0040.02914.24
5.4.310.0020.03214.21
5.4.300.0040.03214.19
5.4.290.0060.02414.28
5.4.280.0060.02514.20
5.4.270.0020.03214.08
5.4.260.0030.03214.17
5.4.250.0030.02314.18
5.4.240.0060.03014.13
5.4.230.0070.02814.20
5.4.220.0070.02514.20
5.4.210.0050.02514.20
5.4.200.0080.02614.11
5.4.190.0070.02114.08
5.4.180.0050.01714.20
5.4.170.0090.01314.08
5.4.160.0050.01814.16
5.4.150.0070.01914.23
5.4.140.0060.02613.21
5.4.130.0090.01713.27
5.4.120.0020.02413.26
5.4.110.0030.02813.30
5.4.100.0070.02713.24
5.4.90.0040.01913.24
5.4.80.0050.02913.27
5.4.70.0040.01913.19
5.4.60.0070.02613.27
5.4.50.0050.02613.22
5.4.40.0100.02313.25
5.4.30.0070.02013.32
5.4.20.0030.02513.21
5.4.10.0060.02713.29
5.4.00.0060.02713.10
5.3.290.0070.01712.73
5.3.280.0060.02812.65
5.3.270.0020.03112.68
5.3.260.0060.02912.65
5.3.250.0040.02312.67
5.3.240.0050.02912.64
5.3.230.0030.03012.65
5.3.220.0040.02712.59
5.3.210.0040.02412.67
5.3.200.0040.02912.64
5.3.190.0040.03212.59
5.3.180.0020.02712.64
5.3.170.0050.01712.63
5.3.160.0060.02512.64
5.3.150.0080.02812.64
5.3.140.0060.02112.65
5.3.130.0010.02712.63
5.3.120.0030.03112.69
5.3.110.0030.02112.62
5.3.100.0040.01812.48
5.3.90.0050.02612.46
5.3.80.0080.02412.46
5.3.70.0040.03012.46
5.3.60.0040.02712.45
5.3.50.0090.02312.49
5.3.40.0040.02912.43
5.3.30.0050.02012.44
5.3.20.0040.02612.36
5.3.10.0030.02212.29
5.3.00.0040.02312.33
5.2.170.0030.06311.13
5.2.160.0030.06310.98
5.2.150.0070.05311.15
5.2.140.0030.06311.04
5.2.130.0070.04011.18
5.2.120.0130.05311.04
5.2.110.0070.05010.98
5.2.100.0100.05711.04
5.2.90.0130.04010.95
5.2.80.0100.05310.95
5.2.70.0030.06311.03
5.2.60.0130.04710.92
5.2.50.0000.05311.00
5.2.40.0070.03310.90
5.2.30.0070.07010.91
5.2.20.0100.05710.89
5.2.10.0070.05710.86
5.2.00.0030.05710.56
5.1.60.0000.0339.98
5.1.50.0000.04710.00
5.1.40.0000.0379.88
5.1.30.0070.04010.32
5.1.20.0030.05710.36
5.1.10.0170.02310.13
5.1.00.0030.05710.04
5.0.50.0070.0308.56
5.0.40.0000.0438.38
5.0.30.0070.0508.29
5.0.20.0070.0408.36
5.0.10.0070.0208.31
5.0.00.0070.0408.15
4.4.90.0000.0207.91
4.4.80.0000.0307.91
4.4.70.0030.0337.91
4.4.60.0070.0237.91
4.4.50.0070.0337.91
4.4.40.0000.0477.91
4.4.30.0070.0337.91
4.4.20.0030.0337.91
4.4.10.0070.0377.91
4.4.00.0070.0337.91
4.3.110.0030.0277.91
4.3.100.0100.0277.91
4.3.90.0070.0237.91
4.3.80.0000.0377.91
4.3.70.0030.0307.91
4.3.60.0070.0277.91
4.3.50.0030.0377.91
4.3.40.0070.0237.91
4.3.30.0000.0237.91
4.3.20.0070.0177.91
4.3.10.0070.0137.91
4.3.00.0000.0177.91