3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Prints the day, date, month, year, time, AM or PM echo date("l jS \of F Y h:i:s A") . "<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.0040.01816.50
8.3.50.0110.00717.31
8.3.40.0070.00718.92
8.3.30.0150.00718.93
8.3.20.0040.00418.89
8.3.10.0040.00420.52
8.3.00.0080.00017.63
8.2.180.0070.00716.63
8.2.170.0140.00722.96
8.2.160.0000.01322.08
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00419.95
8.2.110.0030.00621.18
8.2.100.0080.00418.03
8.2.90.0040.00419.34
8.2.80.0080.00018.18
8.2.70.0060.00317.75
8.2.60.0040.00418.16
8.2.50.0030.00518.07
8.2.40.0000.00718.41
8.2.30.0030.00618.19
8.2.20.0000.00817.76
8.2.10.0050.00217.94
8.2.00.0040.00417.88
8.1.280.0030.01025.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00720.91
8.1.230.0080.00420.89
8.1.220.0040.00417.80
8.1.210.0060.00318.93
8.1.200.0060.00317.35
8.1.190.0080.00017.53
8.1.180.0000.00818.10
8.1.170.0040.00418.75
8.1.160.0000.00819.00
8.1.150.0000.00718.66
8.1.140.0050.00217.58
8.1.130.0030.00317.77
8.1.120.0070.00017.53
8.1.110.0000.00717.47
8.1.100.0040.00417.48
8.1.90.0040.00417.63
8.1.80.0000.00817.52
8.1.70.0070.00017.41
8.1.60.0000.00917.71
8.1.50.0000.00717.47
8.1.40.0030.00617.48
8.1.30.0000.00717.62
8.1.20.0030.00517.67
8.1.10.0040.00417.67
8.1.00.0040.00417.66
8.0.300.0040.00420.03
8.0.290.0000.00716.88
8.0.280.0070.00018.46
8.0.270.0040.00417.26
8.0.260.0080.00016.89
8.0.250.0000.00717.14
8.0.240.0030.00617.09
8.0.230.0080.00017.00
8.0.220.0040.00416.93
8.0.210.0030.00317.06
8.0.200.0040.00417.06
8.0.190.0000.00717.13
8.0.180.0040.00417.08
8.0.170.0030.00717.05
8.0.160.0040.00416.98
8.0.150.0030.00616.99
8.0.140.0030.00716.86
8.0.130.0050.00013.38
8.0.120.0000.00716.95
8.0.110.0040.00416.94
8.0.100.0040.00416.93
8.0.90.0040.00416.86
8.0.80.0030.01317.09
8.0.70.0040.00416.98
8.0.60.0000.00716.95
8.0.50.0040.00416.89
8.0.30.0120.00517.14
8.0.20.0060.01617.46
8.0.10.0040.00417.17
8.0.00.0100.01016.67
7.4.330.0020.00212.95
7.4.320.0070.00016.66
7.4.300.0000.00716.57
7.4.290.0040.00416.59
7.4.280.0000.00916.53
7.4.270.0070.00016.58
7.4.260.0030.00313.28
7.4.250.0050.00316.51
7.4.240.0040.00416.59
7.4.230.0030.00516.73
7.4.220.0060.01216.68
7.4.210.0070.00816.58
7.4.200.0030.00316.50
7.4.190.0030.00316.58
7.4.160.0080.00816.51
7.4.150.0130.00316.63
7.4.140.0090.00916.41
7.4.130.0080.01016.68
7.4.120.0100.00716.74
7.4.110.0130.01016.75
7.4.100.0050.01116.28
7.4.90.0030.01516.53
7.4.80.0070.01416.65
7.4.70.0060.00916.37
7.4.60.0090.00816.73
7.4.50.0000.00916.74
7.4.40.0070.00716.54
7.4.30.0100.00716.59
7.4.00.0090.00615.09
7.3.330.0060.00013.23
7.3.320.0030.00313.21
7.3.310.0000.00716.39
7.3.300.0070.00016.38
7.3.290.0050.01116.28
7.3.280.0100.00616.37
7.3.270.0120.00616.57
7.3.260.0140.00616.44
7.3.250.0080.01116.55
7.3.240.0060.01016.74
7.3.230.0100.00716.56
7.3.210.0130.00316.42
7.3.200.0090.00919.39
7.3.190.0100.01016.25
7.3.180.0080.00816.74
7.3.170.0080.00816.42
7.3.160.0090.00916.37
7.3.120.0030.01014.98
7.2.330.0080.00916.61
7.2.320.0140.00716.96
7.2.310.0140.00916.39
7.2.300.0040.01416.44
7.2.290.0030.01516.52
7.2.00.0030.01019.47
7.1.100.0050.00518.19
7.1.70.0000.00817.49
7.1.60.0140.00019.40
7.1.50.0130.00917.16
7.1.00.0070.06322.30
7.0.200.0240.00414.63
7.0.140.0070.07022.08
7.0.120.0030.05722.09
7.0.80.0430.06019.86
7.0.70.0330.04719.93
7.0.60.0500.07019.78
7.0.50.0400.03720.16
7.0.40.0070.04720.08
7.0.30.0070.08720.11
7.0.20.0170.02720.06
7.0.10.0030.04320.04
7.0.00.0100.03720.10
5.6.280.0130.06320.91
5.6.230.0100.03320.74
5.6.220.0000.05320.68
5.6.210.0000.04320.63
5.6.200.0130.05721.05
5.6.190.0170.07021.03
5.6.180.0030.04021.05
5.6.170.0000.05721.03
5.6.160.0100.07321.06
5.6.150.0000.05020.95
5.6.140.0100.03321.07
5.6.130.0070.04020.88
5.6.120.0070.05320.95
5.6.110.0030.04321.09
5.6.100.0070.04021.02
5.6.90.0100.03721.11
5.6.80.0030.04020.48
5.6.70.0070.03320.43
5.6.60.0070.05020.38
5.6.50.0070.03720.43
5.6.40.0030.04020.31
5.6.30.0070.03720.41
5.6.20.0030.04720.38
5.6.10.0000.05320.37
5.6.00.0100.04720.47
5.5.370.0030.03720.35
5.5.360.0030.04020.35
5.5.350.0070.05320.47
5.5.340.0100.07720.83
5.5.330.0070.03320.91
5.5.320.0030.04320.88
5.5.310.0070.05020.91
5.5.300.0000.04320.84
5.5.290.0030.04320.82
5.5.280.0000.04720.90
5.5.270.0030.03720.82
5.5.260.0100.03320.91
5.5.250.0030.04720.54
5.5.240.0030.03320.21
5.5.230.0130.03020.28
5.5.220.0070.04020.23
5.5.210.0100.07720.02
5.5.200.0030.04020.26
5.5.190.0000.04320.20
5.5.180.0030.04020.23
5.5.160.0070.08020.12
5.5.150.0170.06320.24
5.5.140.0000.08320.20
5.5.130.0070.05020.20
5.5.120.0130.06720.17
5.5.110.0170.07320.09
5.5.100.0100.03720.16
5.5.90.0000.09020.15
5.5.80.0100.05020.14
5.5.70.0100.08019.99
5.5.60.0070.05020.08
5.5.50.0030.04320.14
5.5.40.0100.03720.05
5.5.30.0000.04720.07
5.5.20.0030.05319.92
5.5.10.0070.05020.03
5.5.00.0000.09020.02
5.4.450.0000.03719.27
5.4.440.0000.04019.53
5.4.430.0070.05019.37
5.4.420.0070.03019.20
5.4.410.0170.03719.40
5.4.400.0000.04719.04
5.4.390.0030.03319.18
5.4.380.0030.03719.12
5.4.370.0030.03719.16
5.4.360.0030.03318.90
5.4.350.0070.03319.25
5.4.340.0030.03319.02
5.4.320.0100.07319.04
5.4.310.0130.07019.03
5.4.300.0000.06019.22
5.4.290.0130.07018.84
5.4.280.0070.08319.13
5.4.270.0100.04319.22
5.4.260.0070.04319.03
5.4.250.0030.06719.15
5.4.240.0070.05019.22
5.4.230.0100.04718.84
5.4.220.0030.06019.02
5.4.210.0070.07719.11
5.4.200.0000.04318.84
5.4.190.0130.02719.07
5.4.180.0030.07719.20
5.4.170.0000.08019.03
5.4.160.0070.07719.02
5.4.150.0070.08018.87
5.4.140.0030.05016.48
5.4.130.0100.07016.50
5.4.120.0170.05316.23
5.4.110.0030.06316.41
5.4.100.0100.04016.56
5.4.90.0200.04316.48
5.4.80.0030.04316.31
5.4.70.0070.07316.39
5.4.60.0100.05716.48
5.4.50.0100.06316.43
5.4.40.0070.07316.52
5.4.30.0100.03316.44
5.4.20.0100.07016.45
5.4.10.0130.07716.24
5.4.00.0070.06715.80
5.3.290.0030.05714.64
5.3.280.0070.06714.65
5.3.270.0030.08014.70
5.3.260.0030.07014.66
5.3.250.0130.06714.53
5.3.240.0030.08014.72
5.3.230.0000.08314.54
5.3.220.0070.07314.70
5.3.210.0070.04014.62
5.3.200.0000.05714.61
5.3.190.0100.07314.49
5.3.180.0100.06314.49
5.3.170.0030.04314.66
5.3.160.0030.07714.66
5.3.150.0170.05014.67
5.3.140.0130.07014.48
5.3.130.0030.04714.63
5.3.120.0070.05714.49
5.3.110.0070.07314.50
5.3.100.0030.08013.99
5.3.90.0000.04314.10
5.3.80.0070.05014.12
5.3.70.0170.03714.07
5.3.60.0030.07713.97
5.3.50.0030.08314.00
5.3.40.0030.05014.05
5.3.30.0070.07313.88
5.3.20.0030.04013.59
5.3.10.0070.07313.64
5.3.00.0070.08013.64
5.2.170.0000.04311.27
5.2.160.0030.06311.24
5.2.150.0100.03011.24
5.2.140.0030.04711.25
5.2.130.0100.05311.11
5.2.120.0000.06710.95
5.2.110.0100.03010.95
5.2.100.0070.05711.10
5.2.90.0100.05011.16
5.2.80.0130.05011.01
5.2.70.0070.05310.99
5.2.60.0130.05010.98
5.2.50.0030.04011.12
5.2.40.0070.05311.09
5.2.30.0070.03010.97
5.2.20.0000.06710.94
5.2.10.0070.05010.87
5.2.00.0070.06010.84
5.1.60.0030.04710.05
5.1.50.0030.02710.00
5.1.40.0070.04710.09
5.1.30.0100.03310.41
5.1.20.0070.04710.28
5.1.10.0070.04010.12
5.1.00.0030.05310.18
5.0.50.0000.0478.63
5.0.40.0000.0478.21
5.0.30.0030.0338.33
5.0.20.0070.0378.20
5.0.10.0030.0438.16
5.0.00.0030.0638.14
4.4.90.0000.0177.20
4.4.80.0000.0407.20
4.4.70.0000.0277.20
4.4.60.0030.0377.20
4.4.50.0100.0277.20
4.4.40.0070.0407.20
4.4.30.0070.0307.20
4.4.20.0000.0337.20
4.4.10.0030.0207.20
4.4.00.0030.0537.20
4.3.110.0070.0207.20
4.3.100.0070.0307.20
4.3.90.0030.0337.20
4.3.80.0000.0577.20
4.3.70.0000.0377.20
4.3.60.0000.0337.20
4.3.50.0000.0307.20
4.3.40.0000.0377.20
4.3.30.0000.0207.20
4.3.20.0000.0207.20
4.3.10.0000.0337.20
4.3.00.0070.0307.20

preferences:
83.35 ms | 400 KiB | 5 Q