3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fileDate = DateTime::createFromFormat("Ymd", "19350320"); $now = new DateTime("now"); echo $fileDate->format("Ymd").' '; echo $now->format("Ymd").' '; $diff1 = $now->diff($fileDate, true); echo $diff1->format("%d days"); ?>

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.0180.00016.63
8.3.50.0090.00922.00
8.3.40.0070.00718.82
8.3.30.0040.01118.77
8.3.20.0070.00020.33
8.3.10.0000.00823.42
8.3.00.0040.00419.91
8.2.180.0030.01718.66
8.2.170.0090.00622.96
8.2.160.0000.01320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.22
8.2.120.0040.00426.35
8.2.110.0070.00419.08
8.2.100.0080.00418.05
8.2.90.0000.00819.32
8.2.80.0040.00417.97
8.2.70.0090.00017.88
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0080.00021.28
8.2.30.0040.00420.68
8.2.20.0040.00417.75
8.2.10.0040.00418.08
8.2.00.0080.00017.97
8.1.280.0140.00325.92
8.1.270.0050.00318.89
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0040.00423.80
8.1.230.0090.00319.08
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00917.36
8.1.190.0030.00517.72
8.1.180.0060.00318.10
8.1.170.0030.00618.77
8.1.160.0050.00220.79
8.1.150.0030.00618.95
8.1.140.0040.00417.56
8.1.130.0000.00717.69
8.1.120.0000.00817.54
8.1.110.0040.00417.64
8.1.100.0050.00317.67
8.1.90.0050.00217.64
8.1.80.0090.00017.55
8.1.70.0000.00817.62
8.1.60.0040.00417.75
8.1.50.0080.00017.57
8.1.40.0040.00417.68
8.1.30.0040.00417.83
8.1.20.0040.00417.70
8.1.10.0040.00417.68
8.1.00.0080.00017.72
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0040.00418.50
8.0.270.0030.00317.03
8.0.260.0080.00017.25
8.0.250.0000.00717.13
8.0.240.0050.00217.20
8.0.230.0030.00717.18
8.0.220.0080.00017.11
8.0.210.0030.00617.13
8.0.200.0040.00417.07
8.0.190.0000.00817.09
8.0.180.0080.00017.03
8.0.170.0040.00417.15
8.0.160.0000.00717.14
8.0.150.0070.00016.94
8.0.140.0060.00617.06
8.0.130.0000.00513.41
8.0.120.0030.00517.01
8.0.110.0070.00016.92
8.0.100.0040.00416.96
8.0.90.0040.00416.96
8.0.80.0100.00617.08
8.0.70.0000.00816.96
8.0.60.0040.00417.05
8.0.50.0080.00017.02
8.0.30.0090.01117.25
8.0.20.0110.00817.42
8.0.10.0030.00517.18
8.0.00.0090.00916.89
7.4.330.0000.00516.82
7.4.320.0060.00016.57
7.4.300.0000.00616.62
7.4.290.0000.00816.63
7.4.280.0060.00316.58
7.4.270.0000.00616.63
7.4.260.0000.00816.70
7.4.250.0030.00616.43
7.4.240.0030.00316.69
7.4.230.0000.00716.55
7.4.220.0090.01016.71
7.4.210.0080.01216.75
7.4.200.0030.00316.55
7.4.160.0110.00516.73
7.4.150.0140.00317.40
7.4.140.0070.01617.86
7.4.130.0110.00716.64
7.4.120.0110.00616.62
7.4.110.0120.00616.63
7.4.100.0090.01216.48
7.4.90.0030.01416.53
7.4.80.0060.01619.39
7.4.70.0130.00416.77
7.4.60.0060.00916.72
7.4.50.0050.00516.41
7.4.40.0120.00616.56
7.4.30.0040.01716.75
7.4.10.0070.01115.15
7.4.00.0050.01114.97
7.3.330.0000.00513.09
7.3.320.0050.00013.27
7.3.310.0000.00716.28
7.3.300.0030.00316.36
7.3.290.0080.00816.31
7.3.280.0140.00416.30
7.3.270.0090.00817.40
7.3.260.0130.00716.60
7.3.250.0100.01016.49
7.3.240.0090.01116.47
7.3.230.0120.00916.63
7.3.210.0000.01616.62
7.3.200.0060.01016.63
7.3.190.0090.00616.79
7.3.180.0130.00316.54
7.3.170.0140.00416.36
7.3.160.0070.01016.52
7.3.130.0130.00315.11
7.3.120.0030.01615.10
7.3.110.0130.00715.12
7.3.100.0090.00614.73
7.3.90.0000.00914.86
7.3.80.0060.00614.84
7.3.70.0060.00615.02
7.3.60.0070.00714.99
7.3.50.0000.01015.06
7.3.40.0090.00615.02
7.3.30.0060.00614.80
7.3.20.0000.01116.71
7.3.10.0090.00616.70
7.3.00.0060.00616.58
7.2.330.0070.01316.95
7.2.320.0030.00416.68
7.2.310.0110.00716.69
7.2.300.0110.00616.79
7.2.290.0110.00616.55
7.2.260.0060.01215.02
7.2.250.0060.01214.91
7.2.240.0080.00815.39
7.2.230.0040.01215.41
7.2.220.0070.00415.13
7.2.210.0110.00415.04
7.2.200.0040.00815.09
7.2.190.0030.01014.94
7.2.180.0040.00815.27
7.2.170.0070.01015.20
7.2.160.0100.01015.30
7.2.150.0070.00716.87
7.2.140.0100.00717.13
7.2.130.0100.01016.78
7.2.120.0100.00617.14
7.2.110.0080.01116.88
7.2.100.0110.00316.87
7.2.90.0130.00017.18
7.2.80.0000.01817.00
7.2.70.0070.00317.08
7.2.60.0050.01117.14
7.2.50.0040.01117.11
7.2.40.0070.01317.09
7.2.30.0040.01117.29
7.2.20.0110.00416.81
7.2.10.0030.01017.13
7.2.00.0090.00518.08
7.1.330.0060.00915.80
7.1.320.0050.00515.86
7.1.310.0040.01115.86
7.1.300.0100.00315.70
7.1.290.0030.01015.91
7.1.280.0070.01115.99
7.1.270.0040.00715.94
7.1.260.0110.00415.93
7.1.250.0030.01315.54
7.1.240.0060.00615.70
7.1.230.0070.01115.77
7.1.220.0040.00815.91
7.1.210.0060.01215.72
7.1.200.0070.00815.82
7.1.190.0040.00716.01
7.1.180.0000.00816.04
7.1.170.0000.01415.91
7.1.160.0120.00415.59
7.1.150.0030.01015.97
7.1.140.0090.00615.72
7.1.130.0000.00915.80
7.1.120.0100.00315.82
7.1.110.0070.00715.77
7.1.100.0040.00716.96
7.1.90.0000.00915.71
7.1.80.0000.01416.00
7.1.70.0050.00516.59
7.1.60.0070.01217.52
7.1.50.0070.01016.61
7.1.40.0030.01315.66
7.1.30.0100.00715.96
7.1.20.0120.00015.87
7.1.10.0060.00315.87
7.1.00.0030.04119.30
7.0.330.0030.01615.53
7.0.320.0100.00315.29
7.0.310.0000.01415.60
7.0.300.0040.01115.70
7.0.290.0120.00615.48
7.0.280.0030.01315.50
7.0.270.0030.01015.38
7.0.260.0030.01015.48
7.0.250.0050.00515.65
7.0.240.0080.00615.57
7.0.230.0070.00315.68
7.0.220.0090.00615.44
7.0.210.0060.00615.65
7.0.200.0080.00316.10
7.0.190.0070.00715.51
7.0.180.0040.00715.42
7.0.170.0000.01115.75
7.0.160.0080.00415.45
7.0.150.0110.00315.68
7.0.140.0040.01115.56
7.0.130.0110.00015.43
7.0.120.0000.01015.73
7.0.110.0120.00015.60
7.0.100.0000.00815.54
7.0.90.0070.00715.66
7.0.80.0070.00315.69
7.0.70.0030.01015.58
7.0.60.0070.04417.81
7.0.50.0020.03416.83
7.0.40.0050.02616.91
7.0.30.0170.04316.90
7.0.20.0180.03616.85
7.0.10.0080.04316.87
7.0.00.0070.04416.80
5.6.400.0060.00314.50
5.6.390.0100.01014.53
5.6.380.0030.01014.61
5.6.370.0040.00714.47
5.6.360.0030.01414.08
5.6.350.0070.00714.54
5.6.340.0000.01614.67
5.6.330.0060.00314.62
5.6.320.0070.00714.72
5.6.310.0030.00614.58
5.6.300.0120.00314.45
5.6.290.0060.00314.67
5.6.280.0020.02117.74
5.6.270.0060.00614.82
5.6.260.0030.00714.56
5.6.250.0120.00314.60
5.6.240.0070.01014.35
5.6.230.0030.00614.33
5.6.220.0040.01114.48
5.6.210.0070.04717.61
5.6.200.0020.05016.32
5.6.190.0040.03717.63
5.6.180.0050.04517.60
5.6.170.0130.03017.48
5.6.160.0060.04217.43
5.6.150.0030.03716.48
5.6.140.0100.04216.30
5.6.130.0070.04216.43
5.6.120.0070.03717.73
5.6.110.0040.03917.65
5.6.100.0090.04717.82
5.6.90.0080.04217.64
5.6.80.0130.03717.32
5.6.70.0060.00314.57
5.6.60.0030.00914.27
5.6.50.0030.00814.36
5.6.40.0060.00614.35
5.6.30.0030.00914.46
5.6.20.0080.00814.36
5.6.10.0040.00714.29
5.6.00.0070.00714.30
5.5.380.0000.00914.64
5.5.370.0070.00314.32
5.5.360.0040.00414.23
5.5.350.2010.02617.37
5.5.340.0080.03816.14
5.5.330.0030.02517.36
5.5.320.0250.04017.24
5.5.310.0110.02117.53
5.5.300.0050.04616.24
5.5.290.0100.04316.25
5.5.280.0040.04417.67
5.5.270.0030.02317.55
5.5.260.0070.04017.72
5.5.250.0100.04017.60
5.5.240.0130.04117.31
5.5.230.0040.00714.24
5.5.220.0050.00814.29
5.5.210.0030.00914.42
5.5.200.0030.01014.43
5.5.190.0070.00714.10
5.5.180.0040.01114.60
5.5.170.0030.01014.18
5.5.160.0030.01014.51
5.5.150.0100.00314.03
5.5.140.0070.00713.98
5.5.130.0040.00814.14
5.5.120.0030.00914.40
5.5.110.0030.01414.38
5.5.100.0030.00914.53
5.5.90.0110.00314.45
5.5.80.0070.00714.20
5.5.70.0070.00414.47
5.5.60.0090.00014.43
5.5.50.0030.01014.45
5.5.40.0130.00314.62
5.5.30.0080.00014.49
5.5.20.0000.01414.43
5.5.10.0000.00914.38
5.5.00.0080.00414.13

preferences:
53.5 ms | 401 KiB | 5 Q