3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $originalDate = new DateTime('2011-11-11'); $modifiedDate = $originalDate->modify('+1 year'); assert($originalDate !== $modifiedDate); assert($modifiedDate->format('Y-m-d') === '2012-11-11'); assert($originalDate->format('Y-m-d') === '2011-11-11');

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.0030.01718.28
8.3.50.0080.00822.12
8.3.40.0140.00719.10
8.3.30.0060.00919.23
8.3.20.0080.00020.16
8.3.10.0040.00423.64
8.3.00.0070.00019.27
8.2.180.0070.01416.88
8.2.170.0110.01122.96
8.2.160.0110.00419.22
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00020.91
8.2.110.0060.00322.11
8.2.100.0050.00520.57
8.2.90.0060.00319.34
8.2.80.0060.00317.97
8.2.70.0030.00617.88
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0030.00518.22
8.2.30.0000.00718.20
8.2.20.0030.00618.01
8.2.10.0080.00018.14
8.2.00.0060.00317.87
8.1.280.0150.00325.92
8.1.270.0060.00323.97
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00024.02
8.1.230.0100.00019.29
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.37
8.1.190.0040.00417.47
8.1.180.0080.00018.10
8.1.170.0030.00618.74
8.1.160.0000.00721.95
8.1.150.0040.00418.84
8.1.140.0000.00817.57
8.1.130.0000.00717.95
8.1.120.0070.00017.71
8.1.110.0060.00317.68
8.1.100.0030.00517.63
8.1.90.0000.00717.68
8.1.80.0000.00717.66
8.1.70.0030.00317.68
8.1.60.0050.00317.63
8.1.50.0040.00417.63
8.1.40.0030.00517.72
8.1.30.0000.00817.89
8.1.20.0080.00017.79
8.1.10.0080.00017.79
8.1.00.0080.00017.74
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0000.00818.44
8.0.270.0040.00417.34
8.0.260.0000.00717.35
8.0.250.0000.00717.26
8.0.240.0030.00317.12
8.0.230.0000.00717.14
8.0.220.0040.00417.10
8.0.210.0040.00417.13
8.0.200.0030.00317.23
8.0.190.0000.00717.25
8.0.180.0070.00017.20
8.0.170.0040.00417.25
8.0.160.0000.00717.04
8.0.150.0030.00317.18
8.0.140.0070.00317.05
8.0.130.0000.00513.57
8.0.120.0050.00317.06
8.0.110.0000.00717.12
8.0.100.0030.00517.05
8.0.90.0020.00517.06
8.0.80.0000.01517.20
8.0.70.0040.00417.06
8.0.60.0000.00817.29
8.0.50.0040.00417.21
8.0.30.0120.01117.45
8.0.20.0120.00617.40
8.0.10.0000.00717.12
8.0.00.0120.01017.02
7.4.330.0000.00515.00
7.4.320.0060.00016.72
7.4.300.0050.00316.73
7.4.290.0040.00416.70
7.4.280.0050.00316.71
7.4.270.0050.00216.80
7.4.260.0030.00316.71
7.4.250.0000.00816.67
7.4.240.0020.00516.82
7.4.230.0030.00316.87
7.4.220.0120.00616.77
7.4.210.0120.00316.91
7.4.200.0000.00716.69
7.4.190.0070.00016.66
7.4.160.0030.01616.70
7.4.150.0090.00917.40
7.4.140.0130.00317.86
7.4.130.0110.00616.66
7.4.120.0090.00816.79
7.4.110.0110.00516.65
7.4.100.0050.01416.57
7.4.90.0090.00916.72
7.4.80.0180.00619.39
7.4.70.0070.01116.96
7.4.60.0060.01116.68
7.4.50.0060.00016.62
7.4.40.0070.01416.77
7.4.30.0060.00916.66
7.4.00.0060.00915.19
7.3.330.0040.00413.48
7.3.320.0020.00213.51
7.3.310.0040.00416.58
7.3.300.0030.00316.45
7.3.290.0100.00316.58
7.3.280.0110.00716.59
7.3.270.0120.00417.40
7.3.260.0060.01216.57
7.3.250.0070.01016.69
7.3.240.0110.01116.69
7.3.230.0100.00716.57
7.3.210.0060.01216.83
7.3.200.0100.01019.39
7.3.190.0150.00816.77
7.3.180.0130.00316.78
7.3.170.0060.00916.62
7.3.160.0090.01216.56
7.3.120.0060.00914.98
7.2.330.0130.00316.69
7.2.320.0080.00816.75
7.2.310.0090.00916.56
7.2.300.0100.00716.49
7.2.290.0110.00816.91
7.2.60.0060.00617.05
7.2.00.0070.00719.61
7.1.200.0070.00715.80
7.1.100.0030.00618.02
7.1.70.0060.00917.41
7.1.60.0100.00319.70
7.1.50.0000.01817.26
7.1.00.0000.07322.57
7.0.200.0000.00716.54
7.0.140.0130.06322.08
7.0.100.0170.07019.92
7.0.90.0130.07019.87
7.0.80.0200.05319.86
7.0.70.0170.08019.92
7.0.60.0030.08319.97
7.0.50.0130.07720.25
7.0.40.0030.06020.04
7.0.30.0130.07720.17
7.0.20.0100.07719.96
7.0.10.0130.06320.12
7.0.00.0030.04720.14
5.6.280.0000.07321.14
5.6.250.0070.08320.75
5.6.240.0100.08720.66
5.6.230.0030.09020.48
5.6.220.0070.07020.66
5.6.210.0030.06320.62
5.6.200.0070.05721.06
5.6.190.0100.08021.02
5.6.180.0100.05021.04
5.6.170.0070.08721.11
5.6.160.0230.06021.17
5.6.150.0170.03720.95
5.6.140.0000.09021.07
5.6.130.0070.08320.95
5.6.120.0130.07721.06
5.6.110.0170.04321.03
5.6.100.0100.08021.09
5.6.90.0070.05320.98
5.6.80.0070.08020.45
5.6.70.0100.06320.41
5.6.60.0100.04320.32
5.6.50.0070.06720.32
5.6.40.0030.08020.39
5.6.30.0030.07720.52
5.6.20.0130.07320.41
5.6.10.0100.06720.35
5.6.00.0100.04320.39
5.5.380.0070.08320.39
5.5.370.0130.06320.55
5.5.360.0000.05320.36
5.5.350.0230.06320.35
5.5.340.0100.07320.91
5.5.330.0070.08320.79
5.5.320.0100.05320.84
5.5.310.0070.05020.75
5.5.300.0030.08320.79
5.5.290.0100.07020.82
5.5.280.0070.07020.77
5.5.270.0070.06720.86
5.5.260.0100.08020.91
5.5.250.0070.07020.70
5.5.240.0030.06720.17
5.5.230.0070.07320.11
5.5.220.0070.08020.24
5.5.210.0100.04320.29
5.5.200.0100.06020.13
5.5.190.0070.04720.26
5.5.180.0170.07020.14
5.5.160.0130.06720.11
5.5.150.0070.07720.08
5.5.140.0100.08020.12
5.5.130.0200.06320.07
5.5.120.0030.05020.14
5.5.110.0070.03720.14
5.5.100.0070.04020.08
5.5.90.0100.06020.20
5.5.80.0100.07020.05
5.5.70.0070.08320.05
5.5.60.0030.04320.11
5.5.50.0100.08020.09
5.5.40.0130.07320.05
5.5.30.0100.07720.04
5.5.20.0100.05319.92
5.5.10.0100.03720.02
5.5.00.0070.03720.05
5.4.450.0030.05019.45
5.4.440.0230.07019.35
5.4.430.0170.06719.38
5.4.420.0100.04019.36
5.4.410.0100.06319.31
5.4.400.0130.06718.95
5.4.390.0100.07719.00
5.4.380.0030.07318.98
5.4.370.0070.05319.05
5.4.360.0130.07719.10
5.4.350.0000.04718.90
5.4.340.0100.05718.79
5.4.320.0170.04019.03
5.4.310.0070.04319.06
5.4.300.0100.07019.03
5.4.290.0070.07318.97
5.4.280.0130.05719.02
5.4.270.0000.05019.09
5.4.260.0070.07019.04
5.4.250.0100.04019.02
5.4.240.0070.07019.23
5.4.230.0200.05718.89
5.4.220.0070.07319.13
5.4.210.0170.03719.02
5.4.200.0000.08019.05
5.4.190.0170.06719.21
5.4.180.0030.05018.89
5.4.170.0070.03719.11
5.4.160.0100.03319.12
5.4.150.0000.04318.76
5.4.140.0000.04716.34
5.4.130.0000.03716.26
5.4.120.0030.04016.37
5.4.110.0030.03716.26
5.4.100.0070.03016.47
5.4.90.0030.03716.40
5.4.80.0030.03316.47
5.4.70.0000.04016.25
5.4.60.0000.04316.42
5.4.50.0000.04016.19
5.4.40.0070.07016.46
5.4.30.0100.06716.18
5.4.20.0030.03716.19
5.4.10.0030.03716.30
5.4.00.0100.06015.51
5.3.290.0170.06314.61
5.3.280.0100.06714.41
5.3.270.0100.04314.56
5.3.260.0000.04314.59
5.3.250.0030.04014.56
5.3.240.0000.04014.46
5.3.230.0000.04014.57
5.3.220.0100.05014.54
5.3.210.0100.03314.43
5.3.200.0000.04014.56
5.3.190.0030.04014.47
5.3.180.0070.03714.55
5.3.170.0030.03014.51
5.3.160.0030.03714.51
5.3.150.0070.02714.55
5.3.140.0000.03714.52
5.3.130.0070.03314.55
5.3.120.0030.04314.36
5.3.110.0100.07014.54
5.3.100.0100.05313.98
5.3.90.0000.04314.00
5.3.80.0070.05713.88
5.3.70.0030.04014.02
5.3.60.0030.03714.00
5.3.50.0100.04713.90
5.3.40.0030.03713.94
5.3.30.0070.04713.85
5.3.20.0070.03013.67
5.3.10.0000.03713.42
5.3.00.0070.03713.49
5.2.170.0000.04311.84
5.2.160.0130.01711.84
5.2.150.0070.02311.84
5.2.140.0030.02711.84
5.2.130.0000.03711.84
5.2.120.0070.02311.84
5.2.110.0030.02711.84
5.2.100.0030.02711.84
5.2.90.0030.02711.84
5.2.80.0000.03011.84
5.2.70.0000.03011.84
5.2.60.0000.03311.84
5.2.50.0030.03011.84
5.2.40.0030.03011.84
5.2.30.0000.03311.84
5.2.20.0070.02311.84
5.2.10.0030.02711.84
5.2.00.0000.03011.84
5.1.60.0000.02711.84
5.1.50.0000.03011.84
5.1.40.0030.02311.84
5.1.30.0100.01711.84
5.1.20.0070.02311.84
5.1.10.0070.02711.84
5.1.00.0100.01711.84
5.0.50.0000.02311.84
5.0.40.0030.01711.84
5.0.30.0030.02711.84
5.0.20.0000.02011.84
5.0.10.0030.01711.84
5.0.00.0030.03011.84
4.4.90.0070.01011.84
4.4.80.0030.01311.84
4.4.70.0000.01711.84
4.4.60.0000.01711.84
4.4.50.0000.02011.84
4.4.40.0000.02711.84
4.4.30.0000.01311.84
4.4.20.0000.01711.84
4.4.10.0030.02011.84
4.4.00.0000.02311.84
4.3.110.0030.02011.84
4.3.100.0030.01311.84
4.3.90.0000.01711.84
4.3.80.0000.02711.84
4.3.70.0030.01311.84
4.3.60.0000.01711.84
4.3.50.0000.01711.84
4.3.40.0000.02311.84
4.3.30.0030.01311.84
4.3.20.0070.01011.84
4.3.10.0000.01311.84
4.3.00.0000.01711.84

preferences:
48.81 ms | 401 KiB | 5 Q