3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=(new DateTime())->format('Y-m-d H:i:s'); echo $a->modify('first day of this month');

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.70.0120.00616.63
8.3.60.0100.00718.40
8.3.50.0100.01021.13
8.3.40.0040.01119.09
8.3.30.0110.00419.11
8.3.20.0150.00320.38
8.3.10.0050.00323.61
8.3.00.0040.00419.79
8.2.190.0060.00918.79
8.2.180.0080.00816.63
8.2.170.0130.00322.96
8.2.160.0000.01420.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00419.33
8.2.120.0070.00026.35
8.2.110.0030.00620.93
8.2.100.0090.00318.03
8.2.90.0000.00919.23
8.2.80.0040.00417.97
8.2.70.0080.00317.63
8.2.60.0040.00917.79
8.2.50.0030.00518.07
8.2.40.0000.00822.32
8.2.30.0000.00720.63
8.2.20.0040.00417.86
8.2.10.0000.01017.98
8.2.00.0040.00418.05
8.1.280.0070.00725.92
8.1.270.0040.00420.33
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.72
8.1.230.0040.00717.83
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0040.00418.62
8.1.160.0040.00420.76
8.1.150.0050.00218.90
8.1.140.0000.00819.63
8.1.130.0060.00317.63
8.1.120.0050.00317.62
8.1.110.0030.00517.58
8.1.100.0050.00317.55
8.1.90.0070.00017.48
8.1.80.0000.00917.59
8.1.70.0040.00417.50
8.1.60.0040.00417.66
8.1.50.0080.00017.48
8.1.40.0050.00317.52
8.1.30.0000.00917.63
8.1.20.0080.00017.69
8.1.10.0000.00817.71
8.1.00.0030.00717.57
8.0.300.0080.00018.77
8.0.290.0040.00417.00
8.0.280.0030.00318.32
8.0.270.0040.00317.14
8.0.260.0030.00317.18
8.0.250.0070.00017.15
8.0.240.0000.00717.11
8.0.230.0000.00717.24
8.0.220.0000.00717.00
8.0.210.0070.00017.04
8.0.200.0030.00317.07
8.0.190.0030.00517.04
8.0.180.0000.00817.11
8.0.170.0040.00417.01
8.0.160.0060.00317.19
8.0.150.0000.00817.13
8.0.140.0030.00517.08
8.0.130.0000.00513.37
8.0.120.0030.00517.03
8.0.110.0000.00716.98
8.0.100.0070.00016.95
8.0.90.0030.00517.06
8.0.80.0070.01017.04
8.0.70.0040.00417.09
8.0.60.0040.00417.13
8.0.50.0050.00217.07
8.0.30.0150.00617.19
8.0.20.0130.00717.40
8.0.10.0000.00717.07
8.0.00.0110.00916.85
7.4.330.0020.00216.67
7.4.320.0030.00316.68
7.4.300.0000.00616.68
7.4.290.0080.00016.61
7.4.280.0040.00416.65
7.4.270.0000.00616.53
7.4.260.0000.00716.61
7.4.250.0000.00716.52
7.4.240.0020.00516.56
7.4.230.0070.00016.84
7.4.220.0130.01316.53
7.4.210.0080.00716.71
7.4.200.0040.00416.81
7.4.160.0040.01116.66
7.4.150.0100.00917.40
7.4.140.0120.00517.86
7.4.130.0110.01216.67
7.4.120.0120.00516.66
7.4.110.0110.00716.62
7.4.100.0110.00616.66
7.4.90.0100.00716.54
7.4.80.0130.01019.39
7.4.70.0030.01316.66
7.4.60.0100.00716.69
7.4.50.0110.00316.64
7.4.40.0060.00916.48
7.4.30.0140.00316.62
7.4.10.0050.00815.25
7.4.00.0030.01215.08
7.3.330.0000.00513.08
7.3.320.0060.00013.12
7.3.310.0050.00316.33
7.3.300.0070.00016.45
7.3.290.0030.00316.36
7.3.280.0100.00616.38
7.3.270.0120.01217.40
7.3.260.0130.00316.47
7.3.250.0130.00616.59
7.3.240.0070.01016.45
7.3.230.0100.00716.56
7.3.210.0030.01316.51
7.3.200.0070.01416.46
7.3.190.0060.00916.53
7.3.180.0060.01316.36
7.3.170.0050.01616.48
7.3.160.0050.01116.63
7.3.130.0090.00915.03
7.3.120.0080.01115.02
7.3.110.0050.01214.84
7.3.100.0110.00515.05
7.3.90.0030.01415.08
7.3.80.0110.00515.07
7.3.70.0060.00815.03
7.3.60.0030.00815.12
7.3.50.0060.00514.88
7.3.40.0070.00615.04
7.3.30.0000.01115.00
7.3.20.0050.01016.90
7.3.10.0070.01016.74
7.3.00.0090.00716.84
7.2.330.0120.00816.58
7.2.320.0130.00316.41
7.2.310.0030.01216.68
7.2.300.0070.01016.75
7.2.290.0130.00716.84
7.2.260.0120.00815.13
7.2.250.0120.00715.11
7.2.240.0040.01115.12
7.2.230.0080.01015.18
7.2.220.0050.01215.15
7.2.210.0090.00814.98
7.2.200.0070.00515.13
7.2.190.0080.00615.04
7.2.180.0030.01515.02
7.2.170.0030.01315.07
7.2.160.0070.00515.16
7.2.150.0000.01516.72
7.2.140.0060.00816.86
7.2.130.0070.00816.81
7.2.120.0000.01616.94
7.2.110.0060.00916.93
7.2.100.0080.00316.86
7.2.90.0050.00817.08
7.2.80.0040.00916.85
7.2.70.0030.01016.97
7.2.60.0040.00916.97
7.2.50.0050.00717.05
7.2.40.0050.01017.10
7.2.30.0040.00616.96
7.2.20.0090.00317.04
7.2.10.0030.01116.81
7.2.00.0050.00617.82
7.1.330.0050.00815.80
7.1.320.0050.00915.83
7.1.310.0070.00415.62
7.1.300.0030.01215.71
7.1.290.0070.00915.77
7.1.280.0040.01015.61
7.1.270.0050.00715.64
7.1.260.0050.00915.69
7.1.250.0050.00515.74
7.1.240.0030.00815.71
7.1.230.0040.00915.74
7.1.220.0090.00615.87
7.1.210.0060.00615.73
7.1.200.0020.01315.69
7.1.190.0030.00815.85
7.1.180.0070.00315.64
7.1.170.0060.00615.73
7.1.160.0050.00715.74
7.1.150.0050.00415.77
7.1.140.0020.01015.88
7.1.130.0060.00915.72
7.1.120.0070.00715.75
7.1.110.0050.00715.84
7.1.100.0000.01016.56
7.1.90.0110.00415.79
7.1.80.0030.00715.54
7.1.70.0040.00816.25
7.1.60.0050.01117.16
7.1.50.0100.01122.02
7.1.40.0060.00815.73
7.1.30.0050.00715.65
7.1.20.0090.00515.55
7.1.10.0020.01315.86
7.1.00.0030.03118.04
7.0.330.0040.00915.21
7.0.320.0070.00615.47
7.0.310.0070.00515.39
7.0.300.0100.00415.54
7.0.290.0030.01015.40
7.0.280.0080.00615.32
7.0.270.0060.00815.39
7.0.260.0050.00615.47
7.0.250.0060.00615.22
7.0.240.0070.00315.56
7.0.230.0040.01015.58
7.0.220.0060.00815.26
7.0.210.0050.01015.52
7.0.200.0040.00615.89
7.0.190.0020.01115.52
7.0.180.0070.00715.37
7.0.170.0070.00715.20
7.0.160.0090.00415.30
7.0.150.0030.01015.40
7.0.140.0040.00915.41
7.0.130.0030.01015.44
7.0.120.0090.00515.48
7.0.110.0030.01015.48
7.0.100.0030.00615.58
7.0.90.0070.00415.49
7.0.80.0050.00715.59
7.0.70.0070.00315.41
7.0.60.0070.03316.87
7.0.50.0050.03016.40
7.0.40.0100.01716.20
7.0.30.0100.02916.22
7.0.20.0140.02516.28
7.0.10.0070.02716.26
7.0.00.0040.03516.29
5.6.400.0080.00914.72
5.6.390.0060.00414.82
5.6.380.0050.00514.92
5.6.370.0050.00814.80
5.6.360.0080.00314.82
5.6.350.0010.00814.61
5.6.340.0050.00714.61
5.6.330.0040.01014.76
5.6.320.0050.00914.77
5.6.310.0020.01314.85
5.6.300.0050.00714.73
5.6.290.0060.00614.66
5.6.280.0050.02716.84
5.6.270.0100.00514.81
5.6.260.0060.00814.73
5.6.250.0070.00714.81
5.6.240.0030.01014.71
5.6.230.0090.00314.78
5.6.220.0080.00514.87
5.6.210.0090.01916.59
5.6.200.0020.01915.97
5.6.190.0060.02316.61
5.6.180.0130.01416.68
5.6.170.0140.02916.63
5.6.160.0110.03016.59
5.6.150.0040.02115.92
5.6.140.0030.02115.89
5.6.130.0060.03115.90
5.6.120.0040.02016.80
5.6.110.0030.01916.79
5.6.100.0020.03416.93
5.6.90.0120.02616.81
5.6.80.0020.03316.59
5.6.70.0080.00614.74
5.6.60.0070.00714.70
5.6.50.0050.00714.75
5.6.40.0020.01214.77
5.6.30.0060.00714.78
5.6.20.0110.00414.75
5.6.10.0030.00914.69
5.6.00.0040.00814.76
5.5.380.0030.01014.72
5.5.370.0050.00914.67
5.5.360.0070.00514.84
5.5.350.0140.03016.59
5.5.340.0100.02315.81
5.5.330.0070.02216.60
5.5.320.0230.02816.54
5.5.310.0170.03016.55
5.5.300.0040.03315.88
5.5.290.0060.03115.79
5.5.280.0060.02516.71
5.5.270.0090.02816.84
5.5.260.0090.03216.78
5.5.250.0090.02416.64
5.5.240.1420.02016.49
5.5.230.0050.00914.60
5.5.220.0090.00214.61
5.5.210.0050.00814.75
5.5.200.0030.00714.70
5.5.190.0050.00714.63
5.5.180.0060.00514.60
5.5.170.0030.00814.63
5.5.160.0050.00814.57
5.5.150.0030.01314.78
5.5.140.0050.00714.82
5.5.130.0050.00714.75
5.5.120.0010.00914.70
5.5.110.0040.01014.67
5.5.100.0030.01014.60
5.5.90.0100.00714.76
5.5.80.0090.00614.72
5.5.70.0080.00814.68
5.5.60.0060.00814.77
5.5.50.0040.00914.78
5.5.40.0020.01014.65
5.5.30.0060.00714.68
5.5.20.0020.01014.61
5.5.10.0020.01114.60
5.5.00.0100.00314.62

preferences:
51.61 ms | 401 KiB | 5 Q