3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($dt) { echo $dt->format('Y-m-d H:i:s'), "\n"; } f(new DateTimeImmutable('Monday next week 13:00')); f(new DateTimeImmutable('Tuesday next week 14:00')); f(new DateTimeImmutable('Wednesday next week 14:00')); f(new DateTimeImmutable('Thursday next week 15:00')); f(new DateTimeImmutable('Friday next week 16:00')); f(new DateTimeImmutable('Saturday next week 17:00')); f(new DateTimeImmutable('Sunday next week 18:00')); f(new DateTimeImmutable());

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.0120.00618.36
8.3.50.0120.00823.04
8.3.40.0100.01018.83
8.3.30.0110.01118.69
8.3.20.0070.00021.94
8.3.10.0000.00823.56
8.3.00.0040.00419.97
8.2.180.0110.00816.50
8.2.170.0110.00422.96
8.2.160.0040.01121.20
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0030.00521.07
8.2.110.0030.00620.51
8.2.100.0030.00917.97
8.2.90.0040.00418.03
8.2.80.0060.00317.97
8.2.70.0090.00017.75
8.2.60.0030.00618.03
8.2.50.0000.00818.10
8.2.40.0000.00822.32
8.2.30.0050.00321.09
8.2.20.0000.00817.93
8.2.10.0040.00418.12
8.2.00.0050.00217.94
8.1.280.0100.00725.92
8.1.270.0000.00824.09
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0070.00321.07
8.1.230.0080.00420.75
8.1.220.0000.00817.74
8.1.210.0000.00818.89
8.1.200.0040.00417.47
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0060.00318.75
8.1.160.0000.00722.20
8.1.150.0020.00522.84
8.1.140.0040.00419.49
8.1.130.0040.00417.58
8.1.120.0050.00317.45
8.1.110.0040.00417.48
8.1.100.0090.00017.54
8.1.90.0050.00317.60
8.1.80.0050.00317.48
8.1.70.0050.00217.49
8.1.60.0090.00017.70
8.1.50.0030.00617.71
8.1.40.0030.00517.57
8.1.30.0000.00817.85
8.1.20.0090.00017.78
8.1.10.0000.00817.80
8.1.00.0000.00717.69
8.0.300.0040.00420.02
8.0.290.0050.00316.88
8.0.280.0000.00718.57
8.0.270.0040.00417.00
8.0.260.0000.00617.34
8.0.250.0030.00317.21
8.0.240.0070.00017.26
8.0.230.0070.00017.07
8.0.220.0000.00716.98
8.0.210.0000.00716.99
8.0.200.0030.00317.11
8.0.190.0040.00417.05
8.0.180.0050.00216.89
8.0.170.0070.00017.07
8.0.160.0040.00416.94
8.0.150.0040.00416.87
8.0.140.0050.00316.88
8.0.130.0030.00313.34
8.0.120.0000.00816.88
8.0.110.0020.00516.92
8.0.100.0040.00416.86
8.0.90.0060.00317.04
8.0.80.0000.01517.04
8.0.70.0070.00016.91
8.0.60.0000.00716.98
8.0.50.0070.00016.92
8.0.30.0070.01017.40
8.0.20.0040.01417.45
8.0.10.0080.00017.00
8.0.00.0170.00716.98
7.4.330.0050.00015.13
7.4.320.0000.00716.59
7.4.300.0030.00316.66
7.4.290.0000.00716.77
7.4.280.0040.00416.70
7.4.270.0070.00016.64
7.4.260.0050.00216.62
7.4.250.0000.00716.60
7.4.240.0000.00716.69
7.4.230.0000.00716.77
7.4.220.0160.00716.61
7.4.210.0040.01216.78
7.4.200.0040.00416.48
7.4.160.0120.00416.80
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0110.00516.75
7.4.120.0100.00716.66
7.4.110.0030.01316.71
7.4.100.0130.00316.93
7.4.90.0070.01316.65
7.4.80.0170.00319.39
7.4.70.0090.00916.79
7.4.60.0060.01016.69
7.4.50.0110.00316.81
7.4.40.0080.01416.54
7.4.30.0060.01016.77
7.4.00.0040.01115.18
7.3.330.0000.00513.46
7.3.320.0050.00013.28
7.3.310.0030.00316.41
7.3.300.0030.00316.44
7.3.290.0000.00716.50
7.3.280.0110.00816.40
7.3.270.0120.00617.40
7.3.260.0100.00816.60
7.3.250.0090.00916.62
7.3.240.0110.00816.52
7.3.230.0180.00016.64
7.3.210.0110.00716.48
7.3.200.0100.00716.39
7.3.190.0060.01016.45
7.3.180.0140.00316.72
7.3.170.0070.01016.61
7.3.160.0140.00516.59
7.3.10.0220.00516.41
7.3.00.0130.00816.63
7.2.330.0110.00916.60
7.2.320.0110.00516.78
7.2.310.0070.01016.53
7.2.300.0160.00316.95
7.2.290.0060.00916.97
7.2.130.0130.00616.70
7.2.120.0090.00916.69
7.2.110.0030.01216.84
7.2.100.0230.00216.84
7.2.90.0110.00616.95
7.2.80.0080.00816.88
7.2.70.0150.00616.91
7.2.60.0080.00916.88
7.2.50.0100.00716.89
7.2.40.0150.00616.91
7.2.30.0130.00716.80
7.2.20.0140.00816.97
7.2.10.0080.01116.85
7.2.00.0130.00317.89
7.1.250.0120.00215.78
7.1.240.0100.00315.65
7.1.230.0120.00615.75
7.1.220.0110.00315.62
7.1.210.0130.00016.04
7.1.200.0050.00615.81
7.1.190.0070.00715.72
7.1.180.0060.00615.93
7.1.170.0140.00415.71
7.1.160.0120.00615.86
7.1.150.0120.00315.88
7.1.140.0090.00615.91
7.1.130.0130.00315.79
7.1.120.0070.00715.71
7.1.110.0100.00715.88
7.1.100.0510.00815.90
7.1.90.0090.00715.83
7.1.80.0120.00315.55
7.1.70.0090.00316.67
7.1.60.0110.00716.63
7.1.50.0080.00916.40
7.1.40.0120.00616.21
7.1.30.0090.00616.01
7.1.20.0100.00816.11
7.1.10.0060.00916.18
7.1.00.0100.00416.10
7.0.330.0100.00615.18
7.0.320.0090.00615.14
7.0.310.0030.00715.21
7.0.300.0070.00715.09
7.0.290.0080.00415.17
7.0.280.0100.00715.38
7.0.270.0040.01115.21
7.0.260.0090.00615.40
7.0.250.0070.00715.42
7.0.240.0100.00315.41
7.0.230.0070.00715.42
7.0.220.0090.00315.38
7.0.210.0040.00815.05
7.0.200.0050.00516.09
7.0.190.0050.00615.94
7.0.180.0020.00715.68
7.0.170.0090.00615.92
7.0.160.0060.00615.69
7.0.150.0080.00815.80
7.0.140.0080.00515.46
7.0.130.0060.00515.74
7.0.120.0030.00815.83
7.0.110.0070.00416.00
7.0.100.0040.00715.76
7.0.90.0050.00815.65
7.0.80.0040.00715.62
7.0.70.0060.00515.91
7.0.60.0030.00815.85
7.0.50.0070.00615.70
7.0.40.0030.00813.96
7.0.30.0060.00314.02
7.0.20.0030.00713.94
7.0.10.0050.00514.04
7.0.00.0020.00714.10
5.6.380.0000.01014.29
5.6.370.0150.00314.43
5.6.360.0140.00614.10
5.6.350.0100.00714.64
5.6.340.0110.01114.19
5.6.330.0100.00314.19
5.6.320.0070.00814.20
5.6.310.0070.00713.96
5.6.300.0000.02817.46
5.6.290.0050.02317.65
5.6.280.0020.02717.63
5.6.270.0060.03417.58
5.6.260.0100.01817.48
5.6.250.0050.02517.59
5.6.240.0150.02717.62
5.6.230.0080.02317.63
5.6.220.0120.02417.42
5.6.210.0030.02717.53
5.6.200.0050.02517.62
5.6.190.0080.04117.49
5.6.180.0080.02217.38
5.6.170.0020.02817.56
5.6.160.0030.02717.61
5.6.150.0000.03017.53
5.6.140.0000.03617.41
5.6.130.0030.03017.47
5.6.120.0060.02617.76
5.6.110.0070.02217.70
5.6.100.0060.02517.38
5.6.90.0020.02617.57
5.6.80.0070.02117.14
5.6.70.0000.02817.13
5.6.60.0050.02417.20
5.6.50.0020.02717.07
5.6.40.0080.02717.20
5.6.30.0060.02117.14
5.6.20.0030.02617.13
5.6.10.0050.02317.08
5.6.00.0090.02817.14

preferences:
60.52 ms | 401 KiB | 5 Q