3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r((new DateTime('2018-10-01'))->diff(new DateTime('2018-11-01')));

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.2.10.0090.00417.67
8.0.110.0070.00016.98
8.0.100.0030.00516.82
8.0.90.0050.00216.74
8.0.80.0100.00916.98
8.0.70.0050.00217.07
8.0.60.0000.00716.96
8.0.50.0000.00816.92
8.0.30.0100.00817.20
8.0.20.0120.00817.40
8.0.10.0090.00017.09
8.0.00.0070.01016.76
7.4.240.0000.00816.63
7.4.230.0000.00716.50
7.4.220.0000.00716.68
7.4.210.0090.00716.55
7.4.200.0040.00416.59
7.4.160.0080.00716.59
7.4.140.0090.01117.86
7.4.130.0130.00616.33
7.4.120.0120.00616.52
7.4.110.0030.01316.56
7.4.100.0140.00616.73
7.4.90.0160.01916.63
7.4.80.0100.01319.39
7.4.70.0140.00316.67
7.4.60.0080.00816.52
7.4.50.0090.00616.50
7.4.40.0090.00616.46
7.4.00.0000.01714.98
7.3.300.0000.00716.07
7.3.290.0030.00316.25
7.3.280.0060.01316.23
7.3.260.0120.01016.40
7.3.240.0090.00816.44
7.3.230.0090.00916.37
7.3.210.0070.01016.46
7.3.200.0070.01116.44
7.3.190.0150.00916.49
7.3.180.0090.00916.66
7.3.170.0170.00016.63
7.3.160.0120.00416.45
7.3.120.0040.01114.59
7.3.110.0040.01114.94
7.3.100.0060.01014.89
7.3.90.0050.01014.73
7.3.80.0120.00515.01
7.3.70.0060.00914.65
7.3.60.0060.00814.74
7.3.50.0110.00614.83
7.3.40.0090.00614.77
7.3.30.0050.00914.92
7.3.20.0110.00315.64
7.3.10.0080.00715.57
7.3.00.0090.00615.52
7.2.330.0170.00016.56
7.2.320.0060.01216.60
7.2.310.0160.00016.44
7.2.300.0030.01316.73
7.2.290.0030.01316.88
7.2.240.0070.00715.29
7.2.230.0110.00415.26
7.2.220.0080.00815.17
7.2.210.0100.00814.94
7.2.200.0060.01015.19
7.2.190.0080.01014.95
7.2.180.0070.00615.08
7.2.170.0070.00914.94
7.2.160.0080.00814.90
7.2.150.0050.01016.04
7.2.140.0060.01316.02
7.2.130.0220.00815.93
7.2.120.0110.00515.97
7.2.110.0480.00615.36
7.2.100.0350.00815.35
7.2.90.0250.01015.52
7.2.80.0360.00815.33
7.2.70.0420.00715.52
7.2.60.0360.00915.51
7.2.50.0510.00515.47
7.2.40.0340.00715.45
7.2.30.0330.00915.48
7.2.20.0340.00815.52
7.2.10.0420.00715.52
7.2.00.0330.00715.51
7.1.330.0060.00615.90
7.1.320.0080.00514.75
7.1.310.0070.00914.99
7.1.300.0170.00214.98
7.1.290.0020.01414.87
7.1.280.0070.00914.70
7.1.270.0040.01214.94
7.1.260.0080.00614.89
7.1.250.0100.00814.96
7.1.240.0110.00814.08
7.1.230.0460.00813.91
7.1.220.0540.00714.04
7.1.210.0410.00813.90
7.1.200.0290.01213.87
7.1.190.0440.01313.91
7.1.180.0400.00613.83
7.1.170.0710.00814.05
7.1.160.0590.00313.88
7.1.150.0410.00913.91
7.1.140.0460.01014.05
7.1.130.0390.00513.94
7.1.120.0500.01013.96
7.1.110.0400.00513.90
7.1.100.0450.00714.03
7.1.90.0500.00914.04
7.1.80.0550.00613.85
7.1.70.0500.01013.97
7.1.60.0460.00713.96
7.1.50.0540.01013.84
7.1.40.0480.00813.93
7.1.30.0480.00613.90
7.1.20.0490.01013.93
7.1.10.0600.00713.80
7.1.00.0770.00613.90
7.0.330.0220.00413.70
5.6.400.0120.00914.57
5.6.390.0100.01314.47
5.6.380.0090.00814.39

preferences:
61.05 ms | 403 KiB | 5 Q