3v4l.org

run code in 300+ PHP versions simultaneously
<?php // set the default timezone to use. Available since PHP 5.1 date_default_timezone_set('UTC+5'); // Prints something like: Monday echo date("l"); // Prints something like: Monday 8th of August 2005 03:12:46 PM echo date('l jS \of F Y h:i:s A'); // Prints: July 1, 2000 is on a Saturday echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000)); /* use the constants in the format parameter */ // prints something like: Wed, 25 Sep 2013 15:28:57 -0700 echo date(DATE_RFC2822); // prints something like: 2000-07-01T00:00:00+00:00 echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000)); ?>

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.00318.43
8.3.50.0110.00717.92
8.3.40.0040.01418.64
8.3.30.0110.01119.04
8.3.20.0000.00720.34
8.3.10.0020.00521.85
8.3.00.0040.00418.96
8.2.180.0130.01016.63
8.2.170.0070.01122.96
8.2.160.0090.00622.08
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0000.00917.93
8.2.110.0030.00619.22
8.2.100.0090.00317.84
8.2.90.0060.00317.97
8.2.80.0080.00019.18
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0090.00318.07
8.2.40.0030.00619.95
8.2.30.0040.00418.07
8.2.20.0000.00817.71
8.2.10.0080.00017.94
8.2.00.0000.00717.84
8.1.280.0160.00625.92
8.1.270.0030.00618.64
8.1.260.0110.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00322.05
8.1.230.0040.00720.95
8.1.220.0000.00817.74
8.1.210.0000.00818.89
8.1.200.0060.00317.35
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0060.00318.66
8.1.160.0070.00021.86
8.1.150.0040.00418.74
8.1.140.0000.00819.11
8.1.130.0070.00017.73
8.1.120.0040.00417.36
8.1.110.0000.00717.44
8.1.100.0000.00717.43
8.1.90.0070.00017.34
8.1.80.0000.00717.33
8.1.70.0050.00317.46
8.1.60.0000.00817.48
8.1.50.0030.00517.45
8.1.40.0000.00717.37
8.1.30.0030.00517.55
8.1.20.0040.00417.57
8.1.10.0030.00517.42
8.1.00.0050.00217.43
8.0.300.0040.00420.08
8.0.290.0040.00416.88
8.0.280.0030.00318.32
8.0.270.0030.00317.14
8.0.260.0000.00617.27
8.0.250.0040.00417.05
8.0.240.0000.00716.95
8.0.230.0030.00617.02
8.0.220.0040.00416.93
8.0.210.0050.00316.90
8.0.200.0060.00016.96
8.0.190.0040.00417.08
8.0.180.0040.00417.02
8.0.170.0000.00916.93
8.0.160.0070.00016.85
8.0.150.0000.00716.92
8.0.140.0060.00317.04
8.0.130.0000.00513.33
8.0.120.0000.00816.99
8.0.110.0060.00316.96
8.0.100.0030.00516.84
8.0.90.0070.00016.86
8.0.80.0110.00516.93
8.0.70.0000.00716.95
8.0.60.0040.00416.99
8.0.50.0000.00716.82
8.0.30.0130.00717.08
8.0.20.0110.01217.40
8.0.10.0000.00716.96
8.0.00.0140.00816.90
7.4.330.0020.00215.03
7.4.320.0030.00316.45
7.4.300.0000.00616.43
7.4.290.0070.00016.55
7.4.280.0110.00016.41
7.4.270.0000.00716.36
7.4.260.0030.00316.54
7.4.250.0040.00416.52
7.4.240.0030.00316.51
7.4.230.0030.00316.62
7.4.220.0070.01016.47
7.4.210.0080.00816.48
7.4.200.0070.00016.40
7.4.160.0110.00416.91
7.4.150.0130.00917.40
7.4.140.0150.00817.86
7.4.130.0100.01016.53
7.4.120.0130.00716.63
7.4.110.0130.00316.35
7.4.100.0090.00916.49
7.4.90.0110.00616.49
7.4.80.0080.01119.39
7.4.70.0110.00716.66
7.4.60.0080.00816.43
7.4.50.0030.00516.53
7.4.40.0180.00416.69
7.4.30.0110.00616.46
7.4.00.0060.00814.82
7.3.330.0000.00513.16
7.3.320.0000.00713.24
7.3.310.0070.00016.26
7.3.300.0030.00316.36
7.3.290.0060.01116.34
7.3.280.0100.00916.29
7.3.270.0180.00317.40
7.3.260.0090.00916.38
7.3.250.0110.00616.55
7.3.240.0100.01316.38
7.3.230.0060.01516.39
7.3.210.0110.00616.57
7.3.200.0160.00319.39
7.3.190.0040.01116.40
7.3.180.0070.01016.36
7.3.170.0120.00616.50
7.3.160.0080.00816.45
7.3.120.0090.00914.84
7.3.110.0090.00714.87
7.3.100.0050.00714.86
7.3.90.0080.00614.78
7.3.80.0050.00714.78
7.3.70.0130.00314.81
7.3.60.0040.01114.92
7.3.50.0070.00714.63
7.3.40.0050.00915.03
7.3.30.0050.00714.82
7.3.20.0050.01016.90
7.3.10.0050.01116.79
7.3.00.0030.00916.63
7.2.330.0110.00616.42
7.2.320.0060.01116.86
7.2.310.0070.01116.50
7.2.300.0150.00716.74
7.2.290.0110.01116.63
7.2.250.0060.01215.17
7.2.240.0100.01015.06
7.2.230.0060.00715.08
7.2.220.0040.01314.88
7.2.210.0020.01515.08
7.2.200.0050.00915.13
7.2.190.0030.01015.01
7.2.180.0150.00115.00
7.2.170.0070.00915.26
7.2.00.0000.01119.20
7.1.330.0040.00915.64
7.1.320.0060.00615.70
7.1.310.0030.01315.75
7.1.300.0110.00215.70
7.1.290.0050.00915.60
7.1.280.0060.00415.83
7.1.270.0040.00915.68
7.1.260.0080.00815.80
7.1.100.0110.00417.92
7.1.70.0000.00817.19
7.1.60.0090.01519.46
7.1.50.0090.01517.02
7.1.00.0070.07322.33
7.0.200.0040.00416.87
7.0.140.0030.04722.09
7.0.100.0170.03721.97
7.0.90.0100.08021.73
7.0.80.0030.07321.76
7.0.70.0030.04021.61
7.0.60.0130.07021.66
7.0.50.0030.08322.11
7.0.40.0030.08319.95
7.0.30.0030.09320.17
7.0.20.0130.04320.14
7.0.10.0100.08020.07
7.0.00.0030.07320.07
5.6.280.0070.07021.15
5.6.250.0070.06320.59
5.6.240.0000.05020.72
5.6.230.0030.04720.62
5.6.220.0030.07320.55
5.6.210.0070.07720.43
5.6.200.0000.04721.06
5.6.190.0070.04321.05
5.6.180.0030.08721.01
5.6.170.0030.05021.04
5.6.160.0070.08021.11
5.6.150.0030.04721.06
5.6.140.0070.04721.02
5.6.130.0030.04021.07
5.6.120.0030.04321.01
5.6.110.0030.04021.15
5.6.100.0030.03721.03
5.6.90.0030.04020.93
5.6.80.0030.03720.42
5.6.70.0030.04020.43
5.6.60.0000.04720.45
5.6.50.0000.04020.44
5.6.40.0030.03720.45
5.6.30.0070.06320.43
5.6.20.0000.04020.45
5.6.10.0030.03320.48
5.6.00.0000.04720.36
5.5.380.0100.07020.34
5.5.370.0000.05720.45
5.5.360.0000.05320.34
5.5.350.0030.08720.34
5.5.340.0070.05020.64
5.5.330.0100.05720.92
5.5.320.0000.07320.75
5.5.310.0070.04320.79
5.5.300.0130.04020.78
5.5.290.0030.04020.64
5.5.280.0030.04020.89
5.5.270.0000.04320.89
5.5.260.0030.04020.89
5.5.250.0130.03020.67
5.5.240.0030.03720.02
5.5.230.0000.03720.21
5.5.220.0030.03720.23
5.5.210.0030.04020.13
5.5.200.0030.03720.16
5.5.190.0000.04020.23
5.5.180.0000.03720.27
5.5.160.0030.03720.22
5.5.150.0030.03720.27
5.5.140.0000.04020.23
5.5.130.0070.03020.07
5.5.120.0000.05320.21
5.5.110.0000.04020.20
5.5.100.0000.07020.17
5.5.90.0000.04020.10
5.5.80.0000.03720.04
5.5.70.0070.03320.01
5.5.60.0000.04320.15
5.5.50.0000.04019.96
5.5.40.0000.04019.90
5.5.30.0000.04020.14
5.5.20.0000.04020.08
5.5.10.0070.03720.13
5.5.00.0100.07019.98
5.4.450.0030.04019.30
5.4.440.0100.03319.44
5.4.430.0030.04019.37
5.4.420.0000.04019.36
5.4.410.0030.05019.00
5.4.400.0000.03319.10
5.4.390.0000.04019.13
5.4.380.0000.04318.90
5.4.370.0030.04319.02
5.4.360.0070.06318.81
5.4.350.0000.03319.10
5.4.340.0030.03719.09
5.4.320.0000.04019.12
5.4.310.0000.03718.90
5.4.300.0000.03719.12
5.4.290.0030.03318.96
5.4.280.0030.03719.09
5.4.270.0030.03718.91
5.4.260.0000.04719.23
5.4.250.0000.03318.87
5.4.240.0070.03019.11
5.4.230.0000.03719.04
5.4.220.0030.03719.02
5.4.210.0000.03718.78
5.4.200.0000.05019.23
5.4.190.0030.03719.22
5.4.180.0000.03319.11
5.4.170.0000.03719.08
5.4.160.0070.06019.00
5.4.150.0000.04319.04
5.4.140.0000.03716.34
5.4.130.0100.06716.32
5.4.120.0030.04316.44
5.4.110.0070.07016.36
5.4.100.0100.06016.37
5.4.90.0070.06716.31
5.4.80.0070.06016.42
5.4.70.0000.07316.46
5.4.60.0030.07016.32
5.4.50.0030.07316.30
5.4.40.0030.07016.46
5.4.30.0030.04716.23
5.4.20.0030.04016.18
5.4.10.0030.07716.28
5.4.00.0070.03715.73
5.3.290.0030.03714.52
5.3.280.0030.03714.57
5.3.270.0030.03314.59
5.3.260.0000.04714.55
5.3.250.0000.06314.59
5.3.240.0000.08014.60
5.3.230.0070.07014.59
5.3.220.0030.06014.54
5.3.210.0070.06714.57
5.3.200.0000.08314.54
5.3.190.0030.07014.43
5.3.180.0030.08014.41
5.3.170.0030.07714.42
5.3.160.0000.08014.55
5.3.150.0070.07014.41
5.3.140.0100.06714.54
5.3.130.0000.06314.41
5.3.120.0030.06714.45
5.3.110.0070.07314.48
5.3.100.0030.06713.89
5.3.90.0030.07314.00
5.3.80.0000.05713.77
5.3.70.0000.06713.86
5.3.60.0070.04313.96
5.3.50.0030.07013.90
5.3.40.0000.05013.95
5.3.30.0100.05713.86
5.3.20.0030.06713.54
5.3.10.0070.03013.42
5.3.00.0000.07013.62
5.2.170.0070.04711.13
5.2.160.0070.05311.20
5.2.150.0030.05311.06
5.2.140.0030.06311.17
5.2.130.0070.03311.11
5.2.120.0030.03011.16
5.2.110.0070.05311.15
5.2.100.0030.06011.09
5.2.90.0000.06011.14
5.2.80.0030.06011.01
5.2.70.0070.06010.94
5.2.60.0030.04710.88
5.2.50.0070.06310.88
5.2.40.0070.03010.82
5.2.30.0030.06010.92
5.2.20.0070.05711.02
5.2.10.0030.06010.78
5.2.00.0070.05710.64
5.1.60.0030.02710.53
5.1.50.0000.05310.53
5.1.40.0030.04010.53
5.1.30.0030.05310.53
5.1.20.0070.05010.53
5.1.10.0000.03010.53
5.1.00.0100.04310.53
5.0.50.0030.02310.53
5.0.40.0000.03010.53
5.0.30.0030.03310.53
5.0.20.0000.04310.53
5.0.10.0000.03310.53
5.0.00.0030.05010.53
4.4.90.0000.03010.53
4.4.80.0000.02010.53
4.4.70.0000.02010.53
4.4.60.0070.03010.53
4.4.50.0000.03010.53
4.4.40.0000.04310.53
4.4.30.0000.03710.53
4.4.20.0030.03010.53
4.4.10.0030.03010.53
4.4.00.0000.05010.53
4.3.110.0030.03010.53
4.3.100.0000.02710.53
4.3.90.0030.03010.53
4.3.80.0000.03010.53
4.3.70.0000.03310.53
4.3.60.0070.02310.53
4.3.50.0000.03310.53
4.3.40.0000.03310.53
4.3.30.0000.02310.53
4.3.20.0030.03310.53
4.3.10.0030.02010.53
4.3.00.0000.01710.53

preferences:
45.93 ms | 400 KiB | 5 Q