3v4l.org

run code in 200+ PHP versions simultaneously
<?php echo PHP_VERSION; date_default_timezone_set('UTC'); $dti = new DateTimeImmutable('2012-01-01 00:00:00'); $dt = new DateTime('2012-01-01 00:01:00'); var_dump($dt->diff($dti), date_diff($dt, $dti));

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)
7.4.10.0070.00714.66
7.4.00.0050.00914.77
7.3.130.0130.00314.68
7.3.120.0100.00714.66
7.3.110.0100.00714.46
7.3.100.0000.01514.54
7.3.90.0100.01014.70
7.3.80.0080.00814.61
7.3.70.0030.01014.60
7.3.60.0030.01614.46
7.3.50.0070.00614.57
7.3.40.0070.01014.73
7.3.30.0100.00514.68
7.3.20.0030.01416.43
7.3.10.0100.00716.38
7.3.00.0060.01016.43
7.2.260.0090.01215.13
7.2.250.0000.01315.24
7.2.240.0080.00614.99
7.2.230.0070.01115.17
7.2.220.0070.00715.04
7.2.210.0130.00315.04
7.2.200.0090.00915.08
7.2.190.0070.01315.18
7.2.180.0140.00415.20
7.2.170.0080.00815.07
7.2.160.0070.01415.01
7.2.150.0120.00816.79
7.2.140.0100.00716.75
7.2.130.0130.00716.74
7.2.120.0040.01216.62
7.2.110.0080.00916.81
7.2.100.0110.00816.66
7.2.90.0060.01016.72
7.2.80.0050.01316.93
7.2.70.0080.01116.83
7.2.60.0090.00916.79
7.2.50.0110.01016.84
7.2.40.0070.01216.90
7.2.30.0110.00816.83
7.2.20.0090.00916.86
7.2.10.0100.00516.79
7.2.00.0080.00817.53
7.1.330.0030.00815.59
7.1.320.0070.01015.71
7.1.310.0070.00716.00
7.1.300.0060.00915.82
7.1.290.0100.00515.77
7.1.280.0110.00315.47
7.1.270.0060.00915.90
7.1.260.0000.01215.84
7.1.250.0050.00815.68
7.1.240.0080.00715.59
7.1.230.0090.00615.63
7.1.220.0060.01015.54
7.1.210.0080.00615.60
7.1.200.0070.00815.59
7.1.190.0040.01215.74
7.1.180.0130.00715.48
7.1.170.0010.01815.75
7.1.160.0070.01015.77
7.1.150.0130.00515.65
7.1.140.0070.00915.71
7.1.130.0070.01115.65
7.1.120.0090.00615.72
7.1.110.0080.00915.77
7.1.100.0050.01116.35
7.1.90.0070.00915.70
7.1.80.0050.01015.79
7.1.70.0080.00416.12
7.1.60.0080.01016.95
7.1.50.0080.00916.14
7.1.40.0020.01615.79
7.1.30.0050.01015.75
7.1.20.0050.00715.47
7.1.10.0090.00515.68
7.1.00.0010.02517.94
7.0.330.0080.00615.26
7.0.320.0120.00315.36
7.0.310.0100.00615.29
7.0.300.0080.01015.38
7.0.290.0040.01315.34
7.0.280.0030.01315.30
7.0.270.0050.01115.37
7.0.260.0050.01215.32
7.0.250.0080.01015.38
7.0.240.0100.00515.38
7.0.230.0060.01015.23
7.0.220.0050.00615.29
7.0.210.0030.01015.34
7.0.200.0080.00415.89
7.0.190.0100.00615.45
7.0.180.0070.01015.38
7.0.170.0060.00815.35
7.0.160.0070.00715.43
7.0.150.0050.00815.29
7.0.140.0050.03117.61
7.0.130.0040.01115.50
7.0.120.0130.00215.36
7.0.110.0050.00815.32
7.0.100.0030.01215.33
7.0.90.0020.01215.38
7.0.80.0060.00615.29
7.0.70.0080.00515.34
7.0.60.0060.03517.60
7.0.50.0080.03117.66
7.0.40.0060.02215.71
7.0.30.0050.03315.43
7.0.20.0110.02915.56
7.0.10.0070.03415.67
7.0.00.0060.03215.64
5.6.400.0000.01514.57
5.6.390.0030.01214.38
5.6.380.0040.01214.46
5.6.370.0070.00914.45
5.6.360.0090.00814.26
5.6.350.0070.01014.05
5.6.340.0090.01014.12
5.6.330.0090.00814.28
5.6.320.0090.00614.49
5.6.310.0090.00714.27
5.6.300.0080.00714.49
5.6.290.0030.00814.51
5.6.280.0040.03116.50
5.6.270.0070.00614.37
5.6.260.0070.00414.45
5.6.250.0080.00814.41
5.6.240.0090.00514.25
5.6.230.0050.00714.25
5.6.220.0100.00314.45
5.6.210.0070.03016.43
5.6.200.0090.02916.46
5.6.190.0080.03316.44
5.6.180.0010.03416.62
5.6.170.0070.02916.52
5.6.160.0050.03116.58
5.6.150.0070.03016.65
5.6.140.0050.02616.52
5.6.130.0070.02916.61
5.6.120.0080.03316.59
5.6.110.0050.02316.55
5.6.100.0070.03316.41
5.6.90.0050.03316.63
5.6.80.0050.03216.27
5.6.70.0040.03116.25
5.6.60.0060.03316.19
5.6.50.0040.03016.18
5.6.40.0040.03016.35
5.6.30.0050.03316.30
5.6.20.0080.03116.27
5.6.10.0050.03016.28
5.6.00.0090.02316.34
5.5.380.0050.00712.67
5.5.370.0100.00212.50
5.5.360.0040.00912.82
5.5.350.0040.02615.29
5.5.340.0070.02915.36
5.5.330.0060.02515.42
5.5.320.0050.03315.41
5.5.310.0050.03315.38
5.5.300.0100.02815.44
5.5.290.0080.02915.35
5.5.280.0040.03015.46
5.5.270.0040.03315.52
5.5.260.0120.02615.31
5.5.250.0060.03215.15
5.5.240.0050.03415.12
5.5.230.0070.02615.11
5.5.220.0080.02915.19
5.5.210.0100.02814.99
5.5.200.0060.02815.14
5.5.190.0010.03615.11
5.5.180.0050.03215.13
5.5.170.0040.00612.36
5.5.160.0050.03015.10
5.5.150.0050.02815.02
5.5.140.0080.02615.04
5.5.130.0060.03015.11
5.5.120.0040.03514.98
5.5.110.0020.03115.15
5.5.100.0060.01715.05
5.5.90.0040.02915.18
5.5.80.0040.02815.05
5.5.70.0060.03115.09
5.5.60.0020.03215.04
5.5.50.0050.03015.04
5.5.40.0000.03414.81
5.5.30.0060.02915.03
5.5.20.0060.03015.02
5.5.10.0080.03115.24
5.5.00.0080.02415.10
5.4.450.0040.03013.77
5.4.440.0050.02813.57
5.4.430.0010.02313.59
5.4.420.0060.02513.64
5.4.410.0030.02313.61
5.4.400.0060.01513.40
5.4.390.0030.01913.50
5.4.380.0020.03213.44
5.4.370.0040.02113.52
5.4.360.0050.03013.51
5.4.350.0040.03013.49
5.4.340.0040.03113.30
5.4.330.0090.00210.77
5.4.320.0020.03213.52
5.4.310.0040.02813.43
5.4.300.0060.02613.38
5.4.290.0040.02713.54
5.4.280.0040.02913.52
5.4.270.0040.02913.61
5.4.260.0050.02813.32
5.4.250.0020.02013.35
5.4.240.0070.02413.44
5.4.230.0030.02713.36
5.4.220.0050.03113.42
5.4.210.0040.02913.29
5.4.200.0060.02013.51
5.4.190.0060.02413.27
5.4.180.0040.02813.44
5.4.170.0010.03113.42
5.4.160.0040.01413.36
5.4.150.0020.01713.50
5.4.140.0000.01912.53
5.4.130.0060.01512.51
5.4.120.0020.03112.50
5.4.110.0030.01512.56
5.4.100.0060.01212.72
5.4.90.0040.01612.60
5.4.80.0010.01412.55
5.4.70.0020.01412.57
5.4.60.0050.01112.65
5.4.50.0060.01112.50
5.4.40.0050.01112.55
5.4.30.0010.01512.51
5.4.20.0020.01912.56
5.4.10.0060.01212.54
5.4.00.0020.01712.32
5.3.290.0030.03111.94
5.3.280.0020.02911.71
5.3.270.0030.03411.85
5.3.260.0020.02211.72
5.3.250.0040.01411.78
5.3.240.0010.01611.64
5.3.230.0010.01811.83
5.3.220.0100.01311.57
5.3.210.0030.01411.66
5.3.200.0060.01411.60
5.3.190.0030.01511.62
5.3.180.0020.01711.79
5.3.170.0010.01611.76
5.3.160.0060.01011.74
5.3.150.0040.01511.73
5.3.140.0010.02011.72
5.3.130.0050.01811.76
5.3.120.0040.01911.76
5.3.110.0010.01711.66
5.3.100.0030.01811.52
5.3.90.0060.01711.48
5.3.80.0040.01711.39
5.3.70.0030.01411.42
5.3.60.0020.01811.54
5.3.50.0030.01111.43
5.3.40.0040.01311.45
5.3.30.0040.01211.40
5.3.20.0000.01511.33
5.3.10.0020.01311.24
5.3.00.0000.01611.13
5.2.170.0020.01310.55
5.2.160.0030.01710.46
5.2.150.0020.01810.46
5.2.140.0010.01310.55
5.2.130.0020.01310.54
5.2.120.0030.01310.52
5.2.110.0020.01310.54
5.2.100.0040.01210.41
5.2.90.0020.01510.44
5.2.80.0020.01310.51
5.2.70.0050.01110.51
5.2.60.0000.01410.49
5.2.50.0020.01410.47
5.2.40.0050.01210.45
5.2.30.0000.01510.45
5.2.20.0030.01310.45
5.2.10.0020.01510.40
5.2.00.0020.01410.35
5.1.60.0010.01110.15
5.1.50.0030.01010.15
5.1.40.0030.01310.15
5.1.30.0020.03210.15
5.1.20.0030.01510.15
5.1.10.0060.02310.15
5.1.00.0040.02010.15
5.0.50.0040.01510.15
5.0.40.0010.02110.15
5.0.30.0020.03510.15
5.0.20.0010.02110.15
5.0.10.0050.01810.15
5.0.00.0030.03110.15
4.4.90.0020.00810.15
4.4.80.0020.00610.15
4.4.70.0010.00810.15
4.4.60.0000.01110.15
4.4.50.0010.00810.15
4.4.40.0030.02510.15
4.4.30.0000.00810.15
4.4.20.0020.01010.15
4.4.10.0020.02010.15
4.4.00.0020.02210.15
4.3.110.0020.02110.15
4.3.100.0000.02010.15
4.3.90.0070.01410.15
4.3.80.0020.02610.15
4.3.70.0020.01810.15
4.3.60.0010.01410.15
4.3.50.0030.01810.15
4.3.40.0050.02510.15
4.3.30.0030.01910.15
4.3.20.0030.02010.15
4.3.10.0020.01810.15
4.3.00.0030.01710.15