3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = new DateTime('now'); $today_string = $today->format('Y-m-d'); $next_year = clone $today; $next_year->modify( '+1 year' ); $next_year_string = $next_year->format('Y-m-d'); echo $now;

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.0060.00918.66
8.3.50.0100.00821.32
8.3.40.0060.00918.96
8.3.30.0140.00019.10
8.3.20.0040.00420.16
8.3.10.0060.00321.97
8.3.00.0080.00022.41
8.2.180.0090.00916.63
8.2.170.0140.00322.96
8.2.160.0100.00719.33
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0150.00026.16
8.2.120.0080.00019.49
8.2.110.0100.00022.30
8.2.100.0060.00618.03
8.2.90.0000.00818.00
8.2.80.0030.00619.09
8.2.70.0000.00818.05
8.2.60.0000.00818.21
8.2.50.0070.00019.47
8.2.40.0050.00219.63
8.2.30.0040.00418.18
8.2.20.0000.00817.90
8.2.10.0050.00317.97
8.2.00.0000.00918.10
8.1.280.0100.00725.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.87
8.1.230.0080.00420.92
8.1.220.0050.00317.91
8.1.210.0030.00518.77
8.1.200.0040.00417.48
8.1.190.0040.00417.48
8.1.180.0050.00319.09
8.1.170.0000.00918.63
8.1.160.0040.00418.94
8.1.150.0050.00218.73
8.1.140.0060.00317.51
8.1.130.0030.00317.85
8.1.120.0040.00417.63
8.1.110.0030.00517.62
8.1.100.0030.00317.66
8.1.90.0040.00417.55
8.1.80.0040.00417.55
8.1.70.0030.00317.63
8.1.60.0040.00417.70
8.1.50.0040.00417.71
8.1.40.0000.00717.75
8.1.30.0050.00317.83
8.1.20.0000.00817.82
8.1.10.0020.00517.65
8.1.00.0000.00717.65
8.0.300.0000.00818.77
8.0.290.0080.00017.00
8.0.280.0030.00318.59
8.0.270.0030.00317.39
8.0.260.0060.00017.01
8.0.250.0070.00017.18
8.0.240.0030.00317.32
8.0.230.0040.00417.10
8.0.220.0040.00417.13
8.0.210.0070.00017.13
8.0.200.0040.00417.14
8.0.190.0000.00717.22
8.0.180.0000.00717.13
8.0.170.0000.00717.13
8.0.160.0020.00516.96
8.0.150.0070.00017.13
8.0.140.0030.00517.03
8.0.130.0000.00513.50
8.0.120.0040.00417.18
8.0.110.0040.00417.14
8.0.100.0050.00217.05
8.0.90.0000.00817.21
8.0.80.0060.01017.10
8.0.70.0040.00417.11
8.0.60.0080.00017.04
8.0.50.0050.00317.04
8.0.30.0090.00917.26
8.0.20.0120.01117.45
8.0.10.0070.00017.07
8.0.00.0110.00717.16
7.4.330.0000.00515.00
7.4.320.0000.00616.65
7.4.300.0070.00016.64
7.4.290.0000.00616.61
7.4.280.0030.00316.56
7.4.270.0030.00316.75
7.4.260.0040.00416.71
7.4.250.0080.00016.74
7.4.240.0030.00416.64
7.4.230.0070.00016.63
7.4.220.0150.01116.71
7.4.210.0100.00516.67
7.4.200.0000.00716.57
7.4.190.0070.00016.78
7.4.160.0120.00316.61
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0060.01416.63
7.4.120.0110.01116.66
7.4.110.0100.00716.71
7.4.100.0130.01016.80
7.4.90.0030.01716.50
7.4.80.0120.00619.39
7.4.70.0090.00916.79
7.4.60.0170.02016.81
7.4.50.0000.00816.60
7.4.40.0070.01122.77
7.4.30.0170.00016.70
7.4.00.0000.01615.05
7.3.330.0020.00213.24
7.3.320.0020.00213.21
7.3.310.0040.00416.30
7.3.300.0040.00416.30
7.3.290.0070.00716.50
7.3.280.0080.00816.40
7.3.270.0140.00317.40
7.3.260.0070.01016.45
7.3.250.0080.00916.56
7.3.240.0100.01016.54
7.3.230.0100.00716.50
7.3.210.0130.01016.36
7.3.200.0100.01319.39
7.3.190.0060.01016.44
7.3.180.0180.00316.51
7.3.170.0120.00916.79
7.3.160.0090.00616.56
7.3.120.0070.01114.87
7.2.330.0130.00316.78
7.2.320.0100.00716.49
7.2.310.0060.01816.77
7.2.300.0100.00716.78
7.2.290.0080.00916.86
7.2.00.0030.00619.26
7.1.100.0090.00318.27
7.1.70.0050.00517.10
7.1.60.0140.01019.82
7.1.50.0100.01017.05
7.1.00.0070.07022.44
7.0.200.0000.00816.91
7.0.140.0030.07321.96
7.0.60.0070.05719.90
7.0.50.0100.08017.85
7.0.40.0100.07720.23
7.0.30.0370.07320.14
7.0.20.0300.04020.01
7.0.10.0270.07720.09
7.0.00.0070.08320.16
5.6.280.0100.06720.85
5.6.210.0030.04020.66
5.6.200.0000.04718.18
5.6.190.0200.07320.41
5.6.180.3000.03320.41
5.6.170.0200.07020.49
5.6.160.0100.07320.46
5.6.150.0100.07018.19
5.6.140.0030.05018.10
5.6.130.0100.07018.11
5.6.120.0070.03721.09
5.6.110.0170.07721.13
5.6.100.0230.06721.00
5.6.90.0100.08321.10
5.6.80.0170.07020.43
5.6.70.0170.03720.42
5.5.350.0000.08320.34
5.5.340.0100.05718.02
5.5.330.0030.04320.25
5.5.320.0270.08020.29
5.5.310.0300.07320.21
5.5.300.0100.05717.92
5.5.290.0030.09017.96
5.5.280.0130.07720.64
5.5.270.0100.05020.83
5.5.260.0070.05320.87
5.5.250.0100.03320.49
5.5.240.0070.07020.33
5.4.450.0430.08319.42
5.4.440.0270.05019.46
5.4.430.0270.05019.11
5.4.420.0270.07319.24
5.4.410.0330.06719.33
5.4.400.0330.06718.95
5.4.390.0230.08019.24
5.4.380.0330.06719.21
5.4.370.0330.06319.08
5.4.360.0300.07018.91
5.4.350.0270.04319.16
5.4.340.0270.04319.24
5.4.320.0270.08019.24
5.4.310.0330.06319.22
5.4.300.0370.06719.11
5.4.290.0300.07019.24
5.4.280.0370.07019.21
5.4.270.0270.05319.08
5.4.260.0270.04019.21
5.4.250.0300.07318.91
5.4.240.0230.07319.07
5.4.230.0300.07019.15
5.4.220.0400.04319.07
5.4.210.0230.04019.24
5.4.200.0400.05718.93
5.4.190.0300.05719.17
5.4.180.0270.06719.07
5.4.170.0270.04719.23
5.4.160.0300.06719.22
5.4.150.0230.05319.06
5.4.140.0230.07716.46
5.4.130.0370.05016.36
5.4.120.0430.02716.33
5.4.110.0270.04016.44
5.4.100.0270.03716.11
5.4.90.0330.02716.45
5.4.80.0300.03016.51
5.4.70.0300.05716.47
5.4.60.0300.03716.17
5.4.50.0330.06716.38
5.4.40.0330.06316.40
5.4.30.0300.05716.36
5.4.20.0370.05716.36
5.4.10.0270.05716.52
5.4.00.0300.05015.73
5.3.290.0230.07314.57
5.3.280.0270.06314.47
5.3.270.0230.05714.51
5.3.260.0270.05714.46
5.3.250.0230.07014.48
5.3.240.0270.07314.63
5.3.230.0330.07314.62
5.3.220.0200.05014.40
5.3.210.0230.04014.39
5.3.200.0230.04014.65
5.3.190.0230.03714.50
5.3.180.0170.04314.42
5.3.170.0230.03714.51
5.3.160.0270.04314.41
5.3.150.0270.06314.41
5.3.140.0370.05314.53
5.3.130.0330.03314.50
5.3.120.0300.06714.52
5.3.110.0430.06014.48
5.3.100.0300.04313.98
5.3.90.0330.06713.97
5.3.80.0230.04313.99
5.3.70.0270.06714.06
5.3.60.0230.05713.91
5.3.50.0300.07013.90
5.3.40.0270.05713.75
5.3.30.0370.06013.76
5.3.20.0300.04013.64
5.3.10.0400.03313.45
5.3.00.0270.03313.59
5.2.170.0200.06012.10
5.2.160.0270.05312.10
5.2.150.0200.06012.10
5.2.140.0170.04712.10
5.2.130.0200.06012.10
5.2.120.0330.05012.10
5.2.110.0200.03012.10
5.2.100.0300.05012.10
5.2.90.0200.04012.10
5.2.80.0270.05712.10
5.2.70.0200.04012.10
5.2.60.0270.05712.10
5.2.50.0270.04712.10
5.2.40.0170.04012.10
5.2.30.0230.02712.10
5.2.20.0200.03012.10
5.2.10.0200.05712.10
5.2.00.0270.05012.10
5.1.60.0170.04712.10
5.1.50.0230.02012.10
5.1.40.0270.04312.10
5.1.30.0230.02312.10
5.1.20.0130.03712.10
5.1.10.0200.02712.10
5.1.00.0230.03712.10
5.0.50.0170.04012.10
5.0.40.0200.02712.10
5.0.30.0130.04712.10
5.0.20.0130.03712.10
5.0.10.0100.03312.10
5.0.00.0170.04712.10
4.4.90.0130.01712.10
4.4.80.0130.01312.10
4.4.70.0130.01312.10
4.4.60.0200.02712.10
4.4.50.0100.03312.10
4.4.40.0130.03012.10
4.4.30.0100.02312.10
4.4.20.0100.01712.10
4.4.10.0130.01312.10
4.4.00.0100.03312.10
4.3.110.0100.03012.10
4.3.100.0130.03012.10
4.3.90.0100.03312.10
4.3.80.0100.03712.10
4.3.70.0130.01312.10
4.3.60.0070.02012.10
4.3.50.0100.03712.10
4.3.40.0100.04312.10
4.3.30.0030.03012.10
4.3.20.0070.03312.10
4.3.10.0070.02012.10
4.3.00.0030.01712.10

preferences:
42.75 ms | 401 KiB | 5 Q