3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = new \DateTime('first sec of this year'); //$last = new \DateTime('last day of this year'); $last = $first; echo $first->format('Y-m-d H:i:s') . ' to ' . $last->format('Y-m-d H:i:s');

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.0170.00316.38
8.3.50.0190.01321.14
8.3.40.0090.00618.92
8.3.30.0180.00318.66
8.3.20.0040.00420.33
8.3.10.0030.00523.52
8.3.00.0000.00820.68
8.2.180.0070.00716.75
8.2.170.0070.00722.96
8.2.160.0070.00719.16
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00922.30
8.2.120.0060.00326.35
8.2.110.0090.00021.02
8.2.100.0110.00017.97
8.2.90.0000.00720.59
8.2.80.0050.00317.97
8.2.70.0040.00417.80
8.2.60.0050.00318.22
8.2.50.0030.00618.10
8.2.40.0000.00720.52
8.2.30.0040.00420.73
8.2.20.0050.00217.86
8.2.10.0080.00018.05
8.2.00.0050.00318.04
8.1.280.0180.00325.92
8.1.270.0030.00623.91
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00021.16
8.1.230.0060.00620.97
8.1.220.0040.00417.74
8.1.210.0000.01018.77
8.1.200.0100.00017.48
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0000.00818.73
8.1.160.0000.00720.79
8.1.150.0040.00418.77
8.1.140.0040.00419.52
8.1.130.0070.00017.62
8.1.120.0040.00317.54
8.1.110.0070.00017.50
8.1.100.0030.00417.57
8.1.90.0000.00817.53
8.1.80.0000.00717.52
8.1.70.0080.00017.47
8.1.60.0040.00417.63
8.1.50.0040.00417.50
8.1.40.0000.00817.44
8.1.30.0080.00017.68
8.1.20.0080.00017.66
8.1.10.0040.00417.55
8.1.00.0040.00417.47
8.0.300.0060.00319.87
8.0.290.0050.00317.00
8.0.280.0070.00018.44
8.0.270.0040.00417.28
8.0.260.0030.00317.18
8.0.250.0070.00017.12
8.0.240.0040.00417.14
8.0.230.0000.00717.17
8.0.220.0070.00017.00
8.0.210.0000.00716.95
8.0.200.0030.00617.16
8.0.190.0080.00017.04
8.0.180.0000.00717.16
8.0.170.0000.00717.02
8.0.160.0000.00817.06
8.0.150.0060.00316.93
8.0.140.0000.00717.03
8.0.130.0000.00613.51
8.0.120.0030.00517.02
8.0.110.0040.00417.09
8.0.100.0070.00017.15
8.0.90.0040.00417.16
8.0.80.0100.01017.08
8.0.70.0080.00017.14
8.0.60.0050.00217.02
8.0.50.0030.00516.94
8.0.30.0110.00817.20
8.0.20.0100.01117.40
8.0.10.0030.00517.04
8.0.00.0090.01116.94
7.4.330.0050.00015.08
7.4.320.0030.00316.66
7.4.300.0030.00316.45
7.4.290.0070.00016.59
7.4.280.0040.00416.52
7.4.270.0000.00816.66
7.4.260.0050.00216.51
7.4.250.0040.00416.65
7.4.240.0030.00316.68
7.4.230.0000.00716.39
7.4.220.0100.01416.71
7.4.210.0080.01116.71
7.4.200.0070.00016.55
7.4.160.0070.01016.67
7.4.150.0140.00417.40
7.4.140.0050.01517.86
7.4.130.0120.00516.80
7.4.120.0110.01116.62
7.4.110.0180.00316.56
7.4.100.0160.00316.62
7.4.90.0110.00616.69
7.4.80.0080.00819.39
7.4.70.0080.00816.49
7.4.60.0100.00716.72
7.4.50.0040.01216.32
7.4.40.0110.01116.82
7.4.30.0190.00416.64
7.4.00.0000.01314.83
7.3.330.0000.00513.15
7.3.320.0000.00513.27
7.3.310.0070.00016.23
7.3.300.0030.00316.40
7.3.290.0070.00016.31
7.3.280.0100.00916.38
7.3.270.0100.00717.40
7.3.260.0030.01416.63
7.3.250.0100.01016.51
7.3.240.0090.00816.61
7.3.230.0070.01016.51
7.3.210.0100.00716.51
7.3.200.0110.00516.52
7.3.190.0120.00616.74
7.3.180.0120.00316.53
7.3.170.0070.01016.59
7.3.160.0030.01216.57
7.2.330.0070.01016.56
7.2.320.0060.01116.55
7.2.310.0030.01316.73
7.2.300.0080.00816.56
7.2.290.0070.01016.36
7.2.60.0000.01517.07
7.1.200.0080.00415.61
7.1.100.0040.01118.00
7.1.70.0060.00317.05
7.1.60.0100.01619.59
7.1.50.0040.01817.05
7.1.00.0030.07722.36
7.0.200.0180.00416.92
7.0.60.0130.07321.62
7.0.50.0030.08317.79
7.0.40.0200.06320.17
7.0.30.0230.07020.24
7.0.20.0530.05720.36
7.0.10.0470.08320.24
7.0.00.0270.06720.17
5.6.280.0030.07321.00
5.6.210.0100.07020.45
5.6.200.0170.07018.18
5.6.190.0100.08020.61
5.6.180.0270.06720.43
5.6.170.0130.07720.57
5.6.160.0230.05320.70
5.6.150.0230.06020.41
5.6.140.0270.06320.30
5.6.130.0300.05720.17
5.6.120.0400.08020.43
5.6.110.0200.08020.42
5.6.100.0200.06320.43
5.6.90.0230.06020.42
5.6.80.0300.05319.79
5.6.70.0170.05319.79
5.6.60.0330.07019.74
5.6.50.0170.06319.79
5.6.40.0130.06019.77
5.6.30.0200.05719.63
5.6.20.0200.05319.76
5.6.10.0200.05319.72
5.6.00.0270.05019.67
5.5.350.3870.04020.29
5.5.340.0070.06017.94
5.5.330.0370.08020.48
5.5.320.0230.06320.41
5.5.310.0430.05320.27
5.5.300.0300.06320.18
5.5.290.0330.06320.25
5.5.280.0430.07020.17
5.5.270.0130.09020.42
5.5.260.0270.08320.14
5.5.250.0230.08020.04
5.5.240.0170.06319.59
5.5.230.0200.06019.62
5.5.220.0170.07019.60
5.5.210.0130.06319.62
5.5.200.0230.05019.61
5.5.190.0200.05719.48
5.5.180.0200.05319.45
5.5.160.0230.05719.54
5.5.150.0070.07319.34
5.5.140.0170.06019.57
5.5.130.0230.04719.55
5.5.120.0070.06719.56
5.5.110.0200.07019.46
5.5.100.0170.05719.42
5.5.90.0300.05719.49
5.5.80.0100.06319.48
5.5.70.0130.06319.41
5.5.60.0200.06719.46
5.5.50.0170.07719.39
5.5.40.0030.07019.39
5.5.30.0130.06319.36
5.5.20.0200.05019.39
5.5.10.0400.05019.39
5.5.00.0270.04719.37

preferences:
59.93 ms | 401 KiB | 5 Q