3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Prints the day, date, month, year, time, AM or PM echo date("D, j F Y h:i:s") . "<br>"; // Print the array from getdate() print_r(getdate()); echo "<br><br>"; // Return date/time info of a timestamp; then format the output $mydate=getdate(date("U")); echo "$mydate[weekday], $mydate[month] $mydate[mday], $mydate[year]";

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.0100.01316.75
8.3.50.0100.01017.39
8.3.40.0000.01518.93
8.3.30.0040.01118.96
8.3.20.0000.00818.77
8.3.10.0080.00020.61
8.3.00.0050.00317.75
8.2.180.0070.00725.92
8.2.170.0120.00319.10
8.2.160.0110.00422.96
8.2.150.0030.00325.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00326.16
8.2.110.0000.01121.04
8.2.100.0070.00717.97
8.2.90.0040.00419.35
8.2.80.0040.00418.05
8.2.70.0000.00817.75
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0080.00018.28
8.2.30.0000.00918.18
8.2.20.0080.00017.85
8.2.10.0000.00817.74
8.2.00.0000.00817.75
8.1.280.0160.00325.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00320.95
8.1.230.0090.00320.89
8.1.220.0040.00418.77
8.1.210.0080.00018.95
8.1.200.0030.00717.35
8.1.190.0020.00517.63
8.1.180.0050.00318.10
8.1.170.0060.00318.83
8.1.160.0000.00819.02
8.1.150.0000.00718.72
8.1.140.0040.00417.54
8.1.130.0000.00717.89
8.1.120.0040.00417.51
8.1.110.0050.00317.62
8.1.100.0000.00717.60
8.1.90.0020.00517.57
8.1.80.0020.00517.64
8.1.70.0030.00317.54
8.1.60.0030.00617.58
8.1.50.0000.00817.54
8.1.40.0060.00317.59
8.1.30.0040.00417.63
8.1.20.0040.00417.68
8.1.10.0040.00417.61
8.1.00.0040.00417.62
8.0.300.0020.00519.93
8.0.290.0080.00016.88
8.0.280.0000.00718.48
8.0.270.0070.00017.24
8.0.260.0000.00716.95
8.0.250.0030.00317.03
8.0.240.0030.00717.08
8.0.230.0000.00717.00
8.0.220.0000.00717.06
8.0.210.0030.00317.03
8.0.200.0070.00017.16
8.0.190.0040.00417.01
8.0.180.0000.00717.02
8.0.170.0000.00816.95
8.0.160.0000.00716.86
8.0.150.0000.00817.02
8.0.140.0070.00416.96
8.0.130.0030.00313.41
8.0.120.0030.00516.99
8.0.110.0050.00317.03
8.0.100.0030.00516.93
8.0.90.0000.00717.04
8.0.80.0080.00816.95
8.0.70.0080.00016.85
8.0.60.0040.00416.92
8.0.50.0050.00217.06
8.0.30.0080.01117.08
8.0.20.0160.00317.19
8.0.10.0070.00017.01
8.0.00.0120.00616.78
7.4.330.0000.00513.06
7.4.320.0000.00616.66
7.4.300.0070.00016.62
7.4.290.0000.00716.59
7.4.280.0040.00416.62
7.4.270.0020.00516.61
7.4.260.0000.00513.26
7.4.250.0000.00816.59
7.4.240.0000.00816.41
7.4.230.0000.00716.41
7.4.220.0030.01416.52
7.4.210.0070.00816.62
7.4.200.0070.00016.61
7.4.190.0050.00216.68
7.4.160.0110.00416.39
7.4.150.0120.00616.80
7.4.140.0090.00916.64
7.4.130.0080.01016.58
7.4.120.0090.01116.58
7.4.110.0140.00716.85
7.4.100.0030.01316.44
7.4.90.0090.00916.60
7.4.80.0130.00516.64
7.4.70.0150.00316.43
7.4.60.0070.01016.67
7.4.50.0030.00616.32
7.4.40.0040.01116.31
7.4.30.0000.01516.48
7.4.00.0090.00415.21
7.3.330.0000.00613.05
7.3.320.0030.00313.26
7.3.310.0040.00416.22
7.3.300.0000.00716.26
7.3.290.0120.00316.50
7.3.280.0100.00916.33
7.3.270.0060.00916.48
7.3.260.0080.01216.22
7.3.250.0120.00816.56
7.3.240.0160.00016.47
7.3.230.0060.01216.47
7.3.210.0120.00316.23
7.3.200.0140.00319.39
7.3.190.0130.00616.40
7.3.180.0060.01416.60
7.3.170.0080.00916.42
7.3.160.0130.00316.36
7.3.120.0060.01214.96
7.3.110.0070.00714.90
7.3.100.0070.00714.62
7.3.90.0120.00614.68
7.3.80.0120.00415.08
7.3.70.0090.00614.77
7.3.60.0130.00314.83
7.3.50.0060.01214.93
7.3.40.0000.01314.85
7.3.30.0070.00715.00
7.3.20.0090.00616.56
7.3.10.0080.00616.60
7.3.00.0050.00516.50
7.2.330.0030.01517.02
7.2.320.0110.00616.45
7.2.310.0110.01116.94
7.2.300.0070.01116.61
7.2.290.0060.01217.00
7.2.240.0060.00815.44
7.2.230.0000.01315.22
7.2.220.0060.01315.48
7.2.210.0070.01015.07
7.2.200.0040.01414.96
7.2.190.0070.00715.07
7.2.180.0080.00415.16
7.2.170.0000.00914.77
7.2.160.0130.00015.12
7.2.150.0080.00816.78
7.2.140.0060.00916.83
7.2.130.0050.00617.00
7.2.120.0030.01016.87
7.2.110.0050.00716.89
7.2.100.0060.00816.83
7.2.90.0050.00516.96
7.2.80.0080.00716.84
7.2.70.0030.00916.97
7.2.60.0030.01216.89
7.2.50.0040.01317.16
7.2.40.0070.00716.94
7.2.30.0050.00616.92
7.2.20.0050.00817.13
7.2.10.0050.01117.00
7.2.00.0070.00817.75
7.1.330.0070.01015.78
7.1.320.0040.00716.03
7.1.310.0120.00015.88
7.1.300.0060.00915.50
7.1.290.0000.01215.94
7.1.280.0090.00315.94
7.1.270.0000.01515.86
7.1.260.0030.00615.45
7.1.250.0090.00415.69
7.1.100.0030.01017.99
7.1.70.0030.00717.34
7.1.60.0060.00619.40
7.1.50.0000.02217.15
7.1.00.0000.06722.45
7.0.200.0320.00314.92
7.0.140.0100.06322.09
7.0.120.0030.07022.00
7.0.90.0100.07721.77
7.0.80.0030.08721.78
7.0.70.0030.04321.68
7.0.60.0100.07321.79
7.0.50.0030.06322.09
7.0.40.0030.08720.04
7.0.30.0100.07720.04
7.0.20.0070.05320.10
7.0.10.0030.07720.04
7.0.00.0070.08020.12
5.6.280.0070.07020.98
5.6.240.0030.06020.54
5.6.230.0030.07020.57
5.6.220.0030.04320.52
5.6.210.0130.07720.60
5.6.200.0000.04320.91
5.6.190.0100.06721.02
5.6.180.0100.06720.95
5.6.170.0070.07721.03
5.6.160.0000.05021.02
5.6.150.0030.05021.10
5.6.140.0070.06021.01
5.6.130.0030.06320.97
5.6.120.0030.08721.02
5.6.110.0000.09320.93
5.6.100.0100.04321.03
5.6.90.0030.08720.89
5.6.80.0170.06720.37
5.6.70.0030.08020.39
5.6.60.0030.07720.39
5.6.50.0130.07720.33
5.6.40.0100.07020.46
5.6.30.0000.08320.49
5.6.20.0000.04720.39
5.6.10.0000.08020.44
5.6.00.0070.06020.34
5.5.380.0030.08020.45
5.5.370.0070.05020.35
5.5.360.0100.07720.53
5.5.350.0170.06720.39
5.5.340.0030.04020.79
5.5.330.0130.07720.83
5.5.320.0030.05320.75
5.5.310.0070.04020.86
5.5.300.0070.07320.92
5.5.290.0030.08320.73
5.5.280.0070.07720.93
5.5.270.0030.09020.79
5.5.260.0130.07320.91
5.5.250.0000.07720.45
5.5.240.0030.07320.20
5.5.230.0070.05020.26
5.5.220.0000.06320.10
5.5.210.0030.08020.29
5.5.200.0030.06720.18
5.5.190.0070.04320.14
5.5.180.0030.05020.21
5.5.160.0070.04020.13
5.5.150.0100.04320.14
5.5.140.0030.07320.18
5.5.130.0000.08320.17
5.5.120.0070.07020.21
5.5.110.0030.08020.24
5.5.100.0070.07720.17
5.5.90.0030.07720.05
5.5.80.0070.06020.14
5.5.70.0100.07320.08
5.5.60.0000.04720.11
5.5.50.0030.08020.08
5.5.40.0070.07320.05
5.5.30.0030.08020.04
5.5.20.0030.05020.04
5.5.10.0030.05320.12
5.5.00.0000.07719.96
5.4.450.0000.08319.18
5.4.440.0130.07019.17
5.4.430.0030.06719.26
5.4.420.0030.08019.27
5.4.410.0070.05319.33
5.4.400.0130.05718.90
5.4.390.0070.04319.20
5.4.380.0000.07719.20
5.4.370.0030.07019.04
5.4.360.0000.08019.13
5.4.350.0030.05019.03
5.4.340.0000.07719.03
5.4.320.0100.06719.23
5.4.310.0030.06718.87
5.4.300.0100.06319.02
5.4.290.0070.07719.22
5.4.280.0030.05719.14
5.4.270.0070.07319.00
5.4.260.0130.06719.15
5.4.250.0070.07018.89
5.4.240.0000.04019.14
5.4.230.0000.05719.22
5.4.220.0100.07019.20
5.4.210.0070.08019.02
5.4.200.0200.05719.06
5.4.190.0030.04018.81
5.4.180.0030.06719.07
5.4.170.0030.04019.11
5.4.160.0000.08019.02
5.4.150.0030.05318.88
5.4.140.0030.05716.46
5.4.130.0000.05316.48
5.4.120.0030.07016.38
5.4.110.0030.07016.54
5.4.100.0000.07716.41
5.4.90.0000.04016.41
5.4.80.0070.04316.52
5.4.70.0030.04016.40
5.4.60.0100.03016.34
5.4.50.0030.07316.33
5.4.40.0070.07016.45
5.4.30.0030.07316.32
5.4.20.0070.06716.47
5.4.10.0030.07716.43
5.4.00.0030.07315.94
5.3.290.0070.07014.72
5.3.280.0030.04714.54
5.3.270.0030.04314.61
5.3.260.0000.07014.60
5.3.250.0030.06714.57
5.3.240.0100.03314.60
5.3.230.0030.03714.65
5.3.220.0130.04014.69
5.3.210.0000.07314.63
5.3.200.0100.03314.70
5.3.190.0030.04314.62
5.3.180.0000.05714.66
5.3.170.0000.07714.54
5.3.160.0030.07314.50
5.3.150.0000.07014.53
5.3.140.0030.06014.52
5.3.130.0030.06014.51
5.3.120.0000.07714.49
5.3.110.0070.06714.53
5.3.100.0100.04014.03
5.3.90.0130.06014.13
5.3.80.0000.07014.14
5.3.70.0030.07714.14
5.3.60.0070.07014.10
5.3.50.0000.05013.91
5.3.40.0000.07714.07
5.3.30.0030.07013.96
5.3.20.0030.07013.67
5.3.10.0000.04713.62
5.3.00.0170.05013.77
5.2.170.0000.05311.02
5.2.160.0030.06011.27
5.2.150.0030.04010.99
5.2.140.0030.05011.25
5.2.130.0000.06010.95
5.2.120.0030.05711.00
5.2.110.0000.06011.20
5.2.100.0000.03311.18
5.2.90.0000.03311.08
5.2.80.0030.03010.99
5.2.70.0030.05711.22
5.2.60.0000.06711.13
5.2.50.0000.06311.07
5.2.40.0030.06011.11
5.2.30.0070.05311.02
5.2.20.0030.05010.85
5.2.10.0070.05010.91
5.2.00.0030.04710.62
5.1.60.0030.05010.27
5.1.50.0000.05710.27
5.1.40.0030.03010.27
5.1.30.0030.05310.33
5.1.20.0070.04010.44
5.1.10.0070.05010.27
5.1.00.0030.05010.27
5.0.50.0000.04010.27
5.0.40.0070.04010.27
5.0.30.0000.06310.27
5.0.20.0000.04310.27
5.0.10.0000.03010.27
5.0.00.0000.04310.27
4.4.90.0000.02010.27
4.4.80.0030.03310.27
4.4.70.0000.03310.27
4.4.60.0000.02310.27
4.4.50.0000.03710.27
4.4.40.0000.05710.27
4.4.30.0000.02010.27
4.4.20.0030.03010.27
4.4.10.0100.02710.27
4.4.00.0000.05710.27
4.3.110.0030.02010.27
4.3.100.0000.03310.27
4.3.90.0030.02710.27
4.3.80.0000.05310.27
4.3.70.0000.02310.27
4.3.60.0100.01710.27
4.3.50.0000.03710.27
4.3.40.0100.04310.27
4.3.30.0000.04010.27
4.3.20.0030.02710.27
4.3.10.0000.02010.27
4.3.00.0000.03310.27

preferences:
44.9 ms | 401 KiB | 5 Q