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 $next_year->format('y-m-d');

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.0180.00018.43
8.3.50.0080.01121.08
8.3.40.0040.01118.84
8.3.30.0070.00719.04
8.3.20.0050.00220.16
8.3.10.0070.00021.90
8.3.00.0000.00822.40
8.2.180.0180.00016.63
8.2.170.0080.00622.96
8.2.160.0100.00319.24
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.60
8.2.110.0050.00522.20
8.2.100.0120.00019.76
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0080.00317.75
8.2.60.0090.00018.16
8.2.50.0000.00818.07
8.2.40.0110.00417.95
8.2.30.0000.00718.25
8.2.20.0000.00717.96
8.2.10.0040.00417.86
8.2.00.0040.00417.86
8.1.280.0100.01025.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.01024.11
8.1.230.0040.00719.29
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.01017.35
8.1.190.0040.00417.64
8.1.180.0040.00418.78
8.1.170.0090.00018.63
8.1.160.0040.00422.22
8.1.150.0000.00718.73
8.1.140.0000.00717.65
8.1.130.0080.00017.96
8.1.120.0050.00317.57
8.1.110.0080.00017.68
8.1.100.0030.00517.67
8.1.90.0050.00217.57
8.1.80.0000.00717.60
8.1.70.0030.00317.54
8.1.60.0000.00917.72
8.1.50.0030.00517.73
8.1.40.0080.00017.66
8.1.30.0040.00417.68
8.1.20.0040.00417.86
8.1.10.0040.00417.80
8.1.00.0050.00217.65
8.0.300.0050.00318.77
8.0.290.0070.00017.30
8.0.280.0030.00318.54
8.0.270.0000.00717.44
8.0.260.0060.00016.98
8.0.250.0070.00017.13
8.0.240.0000.00717.18
8.0.230.0000.00717.05
8.0.220.0020.00517.13
8.0.210.0040.00416.98
8.0.200.0000.00817.12
8.0.190.0040.00417.11
8.0.180.0070.00017.11
8.0.170.0070.00017.12
8.0.160.0030.00517.07
8.0.150.0040.00417.12
8.0.140.0040.00416.94
8.0.130.0050.00013.48
8.0.120.0070.00016.93
8.0.110.0040.00417.00
8.0.100.0050.00316.90
8.0.90.0070.00016.95
8.0.80.0110.00716.98
8.0.70.0040.00417.09
8.0.60.0050.00217.07
8.0.50.0000.00817.13
8.0.30.0110.00917.23
8.0.20.0130.00617.51
8.0.10.0000.00717.17
8.0.00.0070.01116.78
7.4.330.0020.00215.00
7.4.320.0000.00616.78
7.4.300.0040.00416.74
7.4.290.0050.00216.66
7.4.280.0030.00316.63
7.4.270.0060.00016.59
7.4.260.0000.00716.72
7.4.250.0050.00316.74
7.4.240.0050.00316.70
7.4.230.0000.00716.83
7.4.220.0100.00716.57
7.4.210.0080.00816.66
7.4.200.0000.00816.80
7.4.190.0030.00516.81
7.4.160.0100.00716.62
7.4.150.0110.00717.40
7.4.140.0160.00317.86
7.4.130.0070.01516.69
7.4.120.0070.01116.70
7.4.110.0160.00016.77
7.4.100.0120.00816.63
7.4.90.0120.00616.72
7.4.80.0120.00619.39
7.4.70.0130.00616.47
7.4.60.0080.00816.90
7.4.50.0000.00816.76
7.4.40.0070.01022.77
7.4.30.0130.00316.55
7.4.00.0100.00615.00
7.3.330.0000.00513.23
7.3.320.0050.00013.11
7.3.310.0000.00816.22
7.3.300.0070.00016.34
7.3.290.0100.00416.43
7.3.280.0060.01416.43
7.3.270.0090.00917.40
7.3.260.0170.00016.41
7.3.250.0110.00616.70
7.3.240.0140.00316.71
7.3.230.0110.00716.58
7.3.210.0090.00916.74
7.3.200.0090.01319.39
7.3.190.0070.01316.56
7.3.180.0060.00916.44
7.3.170.0100.00616.70
7.3.160.0060.00916.54
7.3.120.0040.00814.70
7.2.330.0140.00316.88
7.2.320.0070.01016.71
7.2.310.0150.00316.67
7.2.300.0080.00816.54
7.2.290.0100.00716.84
7.2.60.0060.01017.15
7.2.00.0030.01019.59
7.1.200.0030.00315.50
7.1.100.0060.01118.45
7.1.70.0070.00717.20
7.1.60.0080.01519.82
7.1.50.0140.01017.16
7.1.00.0000.08722.24
7.0.200.0040.00416.62
7.0.140.0000.07721.95
7.0.60.0130.06019.85
7.0.50.0030.08317.80
7.0.40.0130.04320.21
7.0.30.0330.06020.09
7.0.20.0330.04320.12
7.0.10.0100.06020.01
7.0.00.0030.04320.16
5.6.210.0030.07020.66
5.6.200.0000.07318.18
5.6.190.0030.04720.48
5.6.180.0030.06720.41
5.6.170.0230.05720.51
5.6.160.0100.04320.61
5.6.150.0030.08718.04
5.6.140.0070.05018.11
5.6.130.0100.07318.11
5.6.120.0100.07021.12
5.6.110.0100.05720.98
5.6.100.0070.08321.08
5.6.90.0130.08020.97
5.6.80.0070.08720.39
5.5.350.0030.08320.33
5.5.340.0070.05318.01
5.5.330.0130.08020.21
5.5.320.0170.07720.18
5.5.310.0170.04720.30
5.5.300.0030.04717.91
5.5.290.0070.07317.95
5.5.280.0070.07020.75
5.5.270.0100.08320.87
5.5.260.0070.08720.79
5.5.250.0130.07720.54
5.5.240.0030.06320.35
5.4.450.0600.06319.43
5.4.440.0730.05719.13
5.4.430.0130.05319.52
5.4.420.0100.05319.46
5.4.410.0100.05318.88
5.4.400.0130.06718.62
5.4.390.0070.06018.72
5.4.380.0170.04718.63
5.4.370.0170.06318.50
5.4.360.0170.04718.68
5.4.350.0170.06018.75
5.4.340.0200.05718.70
5.4.320.0060.03812.45
5.4.310.0080.03612.45
5.4.300.0050.03712.46
5.4.290.0040.03912.45
5.4.280.0030.03812.35
5.4.270.0060.04612.35
5.4.260.0230.05318.93
5.4.250.0130.04718.71
5.4.240.0100.05718.66
5.4.230.0100.06718.67
5.4.220.0170.07318.87
5.4.210.0000.06018.93
5.4.200.0100.05018.86
5.4.190.0130.04718.66
5.4.180.0100.06318.83
5.4.170.0130.06318.66
5.4.160.0130.04718.74
5.4.150.0030.06318.87
5.4.140.0100.06716.36
5.4.130.0100.04716.54
5.4.120.0030.07716.29
5.4.110.0130.06316.46
5.4.100.0070.05016.25
5.4.90.0030.05016.24
5.4.80.0070.07016.26
5.4.70.0200.04316.37
5.4.60.0100.05016.38
5.4.50.0100.04716.34
5.4.40.0030.05016.49
5.4.30.0100.04316.37
5.4.20.0070.05016.16
5.4.10.0100.04716.35
5.4.00.0070.04715.71
5.3.290.0070.04312.80
5.3.280.0100.06014.36
5.3.270.0070.06014.61
5.3.260.0230.06314.30
5.3.250.0070.05314.52
5.3.240.0000.06014.61
5.3.230.0000.06014.61
5.3.220.0200.04014.44
5.3.210.0070.07314.60
5.3.200.0100.05014.73
5.3.190.0070.05314.34
5.3.180.0070.06314.43
5.3.170.0170.05714.26
5.3.160.0070.05014.48
5.3.150.0130.04714.57
5.3.140.0100.05314.57
5.3.130.0130.05314.56
5.3.120.0070.05714.64
5.3.110.0030.08314.55
5.3.100.0070.05014.05
5.3.90.0070.05013.71
5.3.80.0070.06713.87
5.3.70.0130.05013.79
5.3.60.0100.05313.87
5.3.50.0070.05013.71
5.3.40.0070.07013.64
5.3.30.0070.07013.85
5.3.20.0100.05713.54
5.3.10.0100.04313.50
5.3.00.0200.05713.79
5.2.170.0000.05311.13
5.2.160.0100.04011.25
5.2.150.0200.04011.17
5.2.140.0100.05311.23
5.2.130.0100.04011.11
5.2.120.0070.04011.11
5.2.110.0070.04011.00
5.2.100.0100.03711.00
5.2.90.0030.04711.02
5.2.80.0070.05311.10
5.2.70.0030.06010.85
5.2.60.0100.04311.14
5.2.50.0100.04010.94
5.2.40.0130.03311.02
5.2.30.0130.04010.80
5.2.20.0070.04710.72
5.2.10.0100.03310.95
5.2.00.0000.06010.63
5.1.60.0030.03710.05
5.1.50.0030.03310.02
5.1.40.0030.0439.90
5.1.30.0030.04710.41
5.1.20.0000.04010.19
5.1.10.0070.0339.91
5.1.00.0030.03710.12
5.0.50.0030.0338.56
5.0.40.0070.0378.50
5.0.30.0070.0408.27
5.0.20.0000.0438.16
5.0.10.0000.0308.21
5.0.00.0030.0408.21
4.4.90.0130.0135.83
4.4.80.0030.0305.79
4.4.70.0030.0235.84
4.4.60.0000.0275.80
4.4.50.0030.0305.78
4.4.40.0100.0275.80
4.4.30.0000.0305.76
4.4.20.0000.0235.82
4.4.10.0000.0275.86
4.4.00.0030.0335.80
4.3.110.0030.0235.73
4.3.100.0030.0205.71
4.3.90.0000.0235.69
4.3.80.0030.0305.67
4.3.70.0030.0205.81
4.3.60.0030.0205.72
4.3.50.0030.0305.70
4.3.40.0000.0335.77
4.3.30.0030.0205.61
4.3.20.0030.0275.61
4.3.10.0000.0235.61
4.3.00.0170.0236.77

preferences:
39.7 ms | 401 KiB | 5 Q