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('Etc/GMT+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.70.0040.01118.54
8.3.60.0120.00318.20
8.3.50.0060.01421.87
8.3.40.0110.00719.02
8.3.30.0170.00318.96
8.3.20.0040.00420.12
8.3.10.0040.00421.73
8.3.00.0070.00018.89
8.2.180.0070.01118.16
8.2.170.0070.01022.96
8.2.160.0070.00722.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00318.04
8.2.110.0060.00321.18
8.2.100.0040.00817.91
8.2.90.0030.00618.91
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0040.00417.80
8.2.50.0040.00718.07
8.2.40.0050.00319.88
8.2.30.0050.00317.97
8.2.20.0060.00317.66
8.2.10.0050.00317.96
8.2.00.0070.00017.63
8.1.280.0040.01125.92
8.1.270.0100.00018.85
8.1.260.0070.01126.35
8.1.250.0040.00428.09
8.1.240.0060.00621.89
8.1.230.0070.00422.54
8.1.220.0050.00317.76
8.1.210.0040.00418.90
8.1.200.0030.00617.36
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0070.00418.68
8.1.160.0050.00321.93
8.1.150.0040.00418.70
8.1.140.0030.00619.29
8.1.130.0000.00717.75
8.1.120.0000.00717.50
8.1.110.0040.00417.46
8.1.100.0000.00717.29
8.1.90.0000.00817.34
8.1.80.0050.00217.32
8.1.70.0070.00017.45
8.1.60.0040.00417.54
8.1.50.0040.00417.36
8.1.40.0030.00517.34
8.1.30.0000.00817.48
8.1.20.0070.00017.48
8.1.10.0000.00817.56
8.1.00.0030.00617.50
8.0.300.0070.00019.80
8.0.290.0000.00716.88
8.0.280.0070.00018.38
8.0.270.0000.00717.16
8.0.260.0060.00017.29
8.0.250.0030.00316.91
8.0.240.0000.00717.07
8.0.230.0040.00416.96
8.0.220.0030.00316.97
8.0.210.0030.00316.87
8.0.200.0030.00316.96
8.0.190.0050.00317.01
8.0.180.0030.00516.95
8.0.170.0080.00016.89
8.0.160.0000.00717.02
8.0.150.0030.00316.73
8.0.140.0040.00416.87
8.0.130.0000.00713.30
8.0.120.0000.00816.94
8.0.110.0060.00316.81
8.0.100.0000.00716.72
8.0.90.0070.00016.66
8.0.80.0120.00916.82
8.0.70.0060.00316.94
8.0.60.0000.00716.77
8.0.50.0040.00416.73
8.0.30.0070.01717.18
8.0.20.0100.00817.40
8.0.10.0000.00817.11
8.0.00.0070.01216.72
7.4.330.0050.00015.07
7.4.320.0030.00316.50
7.4.300.0000.00616.50
7.4.290.0070.00016.53
7.4.280.0060.00516.44
7.4.270.0030.00316.55
7.4.260.0030.00516.39
7.4.250.0050.00316.46
7.4.240.0060.00216.45
7.4.230.0070.00016.34
7.4.220.0070.01416.49
7.4.210.0070.01416.52
7.4.200.0000.00716.50
7.4.160.0040.01116.59
7.4.150.0100.01317.40
7.4.140.0090.01217.86
7.4.130.0120.00916.44
7.4.120.0100.00816.61
7.4.110.0060.01616.81
7.4.100.0100.00716.34
7.4.90.0070.01016.64
7.4.80.0100.01019.39
7.4.70.0100.00716.45
7.4.60.0030.01316.48
7.4.50.0040.00416.54
7.4.40.0100.00716.72
7.4.30.0070.01016.35
7.4.00.0070.01114.76
7.3.330.0000.00613.23
7.3.320.0080.00013.10
7.3.310.0040.00416.24
7.3.300.0030.00316.09
7.3.290.0040.01016.31
7.3.280.0080.01116.30
7.3.270.0110.01117.40
7.3.260.0120.00616.52
7.3.250.0050.01116.40
7.3.240.0100.00716.41
7.3.230.0030.01716.39
7.3.210.0100.00716.39
7.3.200.0090.00919.39
7.3.190.0120.00416.52
7.3.180.0060.01016.48
7.3.170.0150.00316.42
7.3.160.0060.00916.27
7.3.120.0040.01214.59
7.3.110.0030.01315.00
7.3.100.0090.00614.71
7.3.90.0000.01314.50
7.3.80.0100.00614.90
7.3.70.0000.01114.96
7.3.60.0120.00014.98
7.3.50.0030.00914.95
7.3.40.0110.00714.98
7.3.30.0000.01214.87
7.3.20.0040.01116.83
7.3.10.0100.00716.70
7.3.00.0070.00716.69
7.2.330.0120.00916.64
7.2.320.0130.00616.45
7.2.310.0080.00816.54
7.2.300.0130.00816.52
7.2.290.0030.02016.68
7.2.250.0070.01114.93
7.2.240.0030.01314.85
7.2.230.0150.00315.23
7.2.220.0080.01115.21
7.2.210.0070.00714.89
7.2.200.0060.00915.14
7.2.190.0090.00614.97
7.2.180.0080.00815.24
7.2.170.0090.00615.14
7.2.60.0070.00716.88
7.2.00.0000.00919.48
7.1.330.0040.01115.94
7.1.320.0070.01016.01
7.1.310.0070.00715.83
7.1.300.0000.01415.92
7.1.290.0090.00615.83
7.1.280.0040.00715.38
7.1.270.0080.00815.70
7.1.260.0040.01115.91
7.1.200.0070.00715.80
7.1.100.0040.01118.16
7.1.70.0000.01517.09
7.1.60.0100.01419.46
7.1.50.0070.01817.10
7.1.00.0100.06722.34
7.0.200.0000.01016.57
7.0.140.0000.06321.97
7.0.80.0070.08719.93
7.0.70.0070.05019.86
7.0.60.0170.08319.93
7.0.50.0230.07020.31
7.0.40.0070.04020.02
7.0.30.0030.05020.04
7.0.20.0030.05720.06
7.0.10.0070.08319.95
7.0.00.0100.08320.10
5.6.280.0100.07021.04
5.6.230.0170.07020.54
5.6.220.0130.04720.73
5.6.210.0130.07720.55
5.6.200.0000.08721.04
5.6.190.0070.05020.93
5.6.180.0000.04720.94
5.6.170.0200.06321.05
5.6.160.0130.07021.06
5.6.150.0070.09021.05
5.6.140.0070.08720.93
5.6.130.0070.08721.10
5.6.120.0030.08020.96
5.6.110.0070.05720.92
5.6.100.0030.08721.06
5.6.90.0130.06720.93
5.6.80.0070.04720.41
5.6.70.0200.06320.51
5.6.60.0030.05020.36
5.6.50.0130.07020.46
5.6.40.0130.06020.52
5.6.30.0130.07320.41
5.6.20.0100.07320.43
5.6.10.0130.08320.42
5.6.00.0030.07720.28
5.5.370.0070.08020.34
5.5.360.0070.08320.41
5.5.350.0030.07020.34
5.5.340.0170.07020.82
5.5.330.0030.04320.74
5.5.320.0070.04020.63
5.5.310.0100.07720.80
5.5.300.0100.06720.75
5.5.290.0170.08020.89
5.5.280.0170.07720.88
5.5.270.0070.08020.89
5.5.260.0100.03720.85
5.5.250.0100.08320.64
5.5.240.0070.07720.10
5.5.230.0030.08320.29
5.5.220.0130.04720.10
5.5.210.0200.06020.10
5.5.200.0070.05720.26
5.5.190.0030.07720.26
5.5.180.0100.07720.27
5.5.160.0000.08320.25
5.5.150.0030.07720.24
5.5.140.0230.06320.13
5.5.130.0130.07720.21
5.5.120.0070.08020.17
5.5.110.0100.06720.07
5.5.100.0100.07320.12
5.5.90.0130.07720.06
5.5.80.0130.07320.04
5.5.70.0100.06720.10
5.5.60.0100.07720.07
5.5.50.0170.06020.13
5.5.40.0100.07719.95
5.5.30.0100.05020.03
5.5.20.0030.04020.12
5.5.10.0100.08020.11
5.5.00.0230.06720.02
5.4.450.0070.08019.45
5.4.440.0070.04719.40
5.4.430.0170.07019.37
5.4.420.0070.05019.45
5.4.410.0100.05319.22
5.4.400.0130.07019.12
5.4.390.0070.05018.90
5.4.380.0100.07019.23
5.4.370.0070.05318.90
5.4.360.0070.07719.07
5.4.350.0070.05018.96
5.4.340.0070.04019.14
5.4.320.0030.08019.11
5.4.310.0030.08718.98
5.4.300.0170.07319.05
5.4.290.0100.07019.08
5.4.280.0100.07719.03
5.4.270.0100.07718.89
5.4.260.0170.06719.09
5.4.250.0170.06019.22
5.4.240.0070.07019.05
5.4.230.0000.05019.11
5.4.220.0100.06319.22
5.4.210.0130.07019.05
5.4.200.0100.07318.80
5.4.190.0000.07018.96
5.4.180.0100.07019.24
5.4.170.0070.06718.77
5.4.160.0070.07718.88
5.4.150.0130.06719.05
5.4.140.0070.05016.06
5.4.130.0070.04316.26
5.4.120.0100.03316.37
5.4.110.0000.04716.36
5.4.100.0130.06316.41
5.4.90.0000.04316.34
5.4.80.0070.07316.19
5.4.70.0030.03716.36
5.4.60.0070.07316.40
5.4.50.0170.06316.42
5.4.40.0130.06716.44
5.4.30.0070.07316.41
5.4.20.0070.05016.34
5.4.10.0000.07716.37
5.4.00.0070.07315.80
5.3.290.0100.07714.64
5.3.280.0070.07314.45
5.3.270.0070.07314.47
5.3.260.0100.07314.59
5.3.250.0030.04014.59
5.3.240.0100.06314.56
5.3.230.0000.04314.54
5.3.220.0070.04314.53
5.3.210.0100.07714.40
5.3.200.0030.08014.55
5.3.190.0030.05314.56
5.3.180.0100.07314.55
5.3.170.0070.06014.55
5.3.160.0070.05714.41
5.3.150.0030.04714.55
5.3.140.0030.04714.52
5.3.130.0130.03714.37
5.3.120.0030.08014.50
5.3.110.0100.07714.40
5.3.100.0070.07314.00
5.3.90.0070.05313.93
5.3.80.0100.06713.97
5.3.70.0170.06314.00
5.3.60.0070.05013.93
5.3.50.0070.04013.71
5.3.40.0130.06713.90
5.3.30.0170.06313.84
5.3.20.0070.07013.46
5.3.10.0170.06313.51
5.3.00.0070.07313.59
5.2.170.0100.05710.93
5.2.160.0070.05711.10
5.2.150.0030.06310.96
5.2.140.0100.06011.13
5.2.130.0070.05311.12
5.2.120.0030.04711.13
5.2.110.0100.04710.98
5.2.100.0070.03711.09
5.2.90.0030.06011.06
5.2.80.0030.04711.09
5.2.70.0070.06010.93
5.2.60.0070.06711.01
5.2.50.0070.06710.83
5.2.40.0100.05711.06
5.2.30.0000.06710.84
5.2.20.0070.05010.82
5.2.10.0030.05710.75
5.2.00.0170.05010.69
5.1.60.0070.05010.69
5.1.50.0000.04710.69
5.1.40.0070.05010.69
5.1.30.0030.04010.69
5.1.20.0070.05010.69
5.1.10.0000.05310.69
5.1.00.0070.03710.69
5.0.50.0070.02710.69
5.0.40.0070.04310.69
5.0.30.0100.05710.69
5.0.20.0030.04010.69
5.0.10.0100.02310.69
5.0.00.0030.05710.69
4.4.90.0030.02310.69
4.4.80.0000.03310.69
4.4.70.0000.03010.69
4.4.60.0030.02310.69
4.4.50.0000.03710.69
4.4.40.0030.04310.69
4.4.30.0030.02010.69
4.4.20.0070.03010.69
4.4.10.0030.03310.69
4.4.00.0030.05310.69
4.3.110.0000.03710.69
4.3.100.0030.03310.69
4.3.90.0070.03010.69
4.3.80.0000.05710.69
4.3.70.0030.02710.69
4.3.60.0070.02310.69
4.3.50.0030.02310.69
4.3.40.0030.05010.69
4.3.30.0030.02310.69
4.3.20.0000.03710.69
4.3.10.0000.03710.69
4.3.00.0000.03310.69

preferences:
69.5 ms | 401 KiB | 5 Q