3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new DateTime('2012-02-17'); $y = clone $x; $y->modify('last day of this month'); echo $x->format('d') . "\n"; echo $y->format('d') . "\n"; echo $y->format('d') - $x->format('d');

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.4.120.0100.01122.36
8.4.110.0090.00722.79
8.4.100.0120.00917.94
8.4.90.0140.00918.53
8.4.80.0060.00319.72
8.4.70.0030.00618.12
8.4.60.0110.01018.77
8.4.50.0110.00920.49
8.4.40.0100.01317.93
8.4.30.0030.00620.72
8.4.20.0120.00618.30
8.4.10.0120.00417.98
8.3.250.0100.00519.05
8.3.240.0090.01016.68
8.3.230.0100.00816.54
8.3.220.0050.00317.04
8.3.210.0150.00418.64
8.3.200.0080.00116.84
8.3.190.0090.00917.22
8.3.180.0050.00316.52
8.3.170.0160.00317.06
8.3.160.0120.00616.69
8.3.150.0090.00920.85
8.3.140.0100.00017.27
8.3.130.0040.00418.36
8.3.120.0000.00818.80
8.3.110.0200.00020.94
8.3.100.0080.00024.06
8.3.90.0030.00626.77
8.3.80.0060.00319.36
8.3.70.0130.00616.73
8.3.60.0100.00716.75
8.3.50.0140.00423.75
8.3.40.0140.00719.01
8.3.30.0000.01418.97
8.3.20.0040.00421.90
8.3.10.0030.00521.91
8.3.00.0040.00423.53
8.2.290.0130.00620.68
8.2.280.0050.00318.48
8.2.270.0110.00717.43
8.2.260.0080.00816.66
8.2.250.0040.00417.05
8.2.240.0130.00318.45
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0100.00018.88
8.2.190.0110.00416.88
8.2.180.0060.00918.42
8.2.170.0000.01422.96
8.2.160.0070.00722.21
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0040.00422.33
8.2.100.0030.00818.16
8.2.90.0090.00020.35
8.2.80.0000.00819.34
8.2.70.0080.00017.75
8.2.60.0080.00018.00
8.2.50.0030.00617.72
8.2.40.0000.00719.42
8.2.30.0000.00719.44
8.2.20.0050.00318.21
8.2.10.0000.00719.30
8.2.00.0060.00319.34
8.1.330.0120.00821.88
8.1.320.0100.00916.31
8.1.310.0000.00718.29
8.1.300.0120.00418.48
8.1.290.0090.00030.84
8.1.280.0150.00325.92
8.1.270.0060.00322.19
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00922.60
8.1.230.0100.00422.69
8.1.220.0040.00417.79
8.1.210.0030.00619.09
8.1.200.0030.00617.59
8.1.190.0040.00817.47
8.1.180.0030.00518.10
8.1.170.0040.00419.02
8.1.160.0070.00019.07
8.1.150.0000.00818.92
8.1.140.0040.00420.87
8.1.130.0070.00020.23
8.1.120.0080.00017.70
8.1.110.0000.00717.68
8.1.100.0050.00317.69
8.1.90.0050.00317.59
8.1.80.0040.00417.72
8.1.70.0000.00717.62
8.1.60.0030.00617.77
8.1.50.0040.00417.60
8.1.40.0080.00017.60
8.1.30.0040.00417.83
8.1.20.0050.00317.68
8.1.10.0000.00817.75
8.1.00.0040.00417.78
8.0.300.0000.00720.03
8.0.290.0040.00417.00
8.0.280.0080.00018.58
8.0.270.0000.00717.18
8.0.260.0000.00620.19
8.0.250.0000.00717.27
8.0.240.0030.00317.24
8.0.230.0040.00417.14
8.0.220.0040.00417.15
8.0.210.0000.00717.07
8.0.200.0080.00017.14
8.0.190.0030.00517.18
8.0.180.0050.00217.27
8.0.170.0030.00617.19
8.0.160.0040.00417.33
8.0.150.0040.00417.04
8.0.140.0000.00817.04
8.0.130.0050.00013.57
8.0.120.0070.00017.08
8.0.110.0040.00417.32
8.0.100.0050.00317.08
8.0.90.0090.00017.11
8.0.80.0100.00817.23
8.0.70.0070.00017.18
8.0.60.0040.00417.22
8.0.50.0040.00416.94
8.0.30.0100.00717.23
8.0.20.0100.01017.31
8.0.10.0030.00517.10
8.0.00.0060.01116.98
7.4.330.0050.00016.71
7.4.320.0070.00016.62
7.4.300.0000.00616.54
7.4.290.0000.00716.75
7.4.280.0000.00716.58
7.4.270.0120.00016.59
7.4.260.0000.00613.31
7.4.250.0000.00716.75
7.4.240.0020.00516.65
7.4.230.0030.00316.83
7.4.220.0020.00516.74
7.4.210.0090.00916.72
7.4.200.0040.00416.74
7.4.140.0190.00617.86
7.4.130.0100.01116.70
7.4.120.0030.01616.45
7.4.110.0090.00916.80
7.4.100.0110.00616.71
7.4.90.0160.00816.71
7.4.80.0080.01419.39
7.4.70.0070.01416.80
7.4.60.0110.00716.71
7.4.50.0060.00916.56
7.4.40.0080.00816.54
7.4.20.0060.01216.52
7.4.10.0130.01016.65
7.4.00.0130.00316.83
7.3.330.0070.00016.50
7.3.320.0060.00013.11
7.3.310.0000.00716.42
7.3.300.0000.00616.37
7.3.290.0080.00716.48
7.3.280.0110.00316.46
7.3.260.0090.00916.63
7.3.230.0030.01516.61
7.3.210.0100.00716.54
7.3.200.0120.01116.51
7.3.190.0040.01116.75
7.3.180.0080.00816.66
7.3.170.0160.00016.54
7.3.160.0080.00916.74
7.3.130.0100.01016.78
7.3.120.0090.00916.50
7.3.110.0140.00416.75
7.3.100.0130.00916.61
7.3.90.0120.00616.70
7.3.80.0130.00816.66
7.3.70.0130.00616.61
7.3.60.0130.00516.63
7.3.50.0060.01516.63
7.3.40.0100.01316.53
7.3.30.0180.00416.34
7.3.20.0150.00716.50
7.3.10.0130.00716.55
7.3.00.0160.00716.48
7.2.330.0130.00416.73
7.2.320.0070.01016.84
7.2.310.0100.00716.75
7.2.300.0030.01616.68
7.2.290.0090.00816.72
7.2.260.0090.00916.62
7.2.250.0150.00316.60
7.2.240.0120.01216.70
7.2.230.0080.01116.69
7.2.220.0070.01116.91
7.2.210.0030.02116.89
7.2.200.0130.00416.72
7.2.190.0140.00716.71
7.2.180.0130.01016.85
7.2.170.0110.01516.76
7.2.160.0060.01616.84
7.2.150.0100.01316.84
7.2.140.0120.01216.98
7.2.130.0130.01016.76
7.2.120.0130.01016.83
7.2.110.0090.00916.73
7.2.100.0070.00416.68
7.2.90.0090.01216.75
7.2.80.0040.01816.91
7.2.70.0120.01216.76
7.2.60.0120.01216.87
7.2.50.0170.00516.76
7.2.40.0060.01616.80
7.2.30.0120.01216.86
7.2.20.0140.00916.84
7.2.10.0190.00016.79
7.2.00.0080.01016.73

preferences:
29.64 ms | 403 KiB | 5 Q