3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ((new \DateTime(null))->diff(new \DateTime()->add(new DateInterval('P1D')))))->format('%a');

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)
5.4.310.1730.04719.12
5.4.300.1830.04318.97
5.4.290.1770.05018.96
5.4.280.1800.03719.21
5.4.270.1570.04318.90
5.4.260.1770.04318.98
5.4.250.1730.03718.76
5.4.240.1670.03719.16
5.4.230.1600.04319.20
5.4.220.1770.04018.76
5.4.210.1570.03019.30
5.4.200.1770.04319.21
5.4.190.1730.04018.87
5.4.180.1570.03719.20
5.4.170.1630.03319.15
5.4.160.1730.04319.14
5.4.150.1870.03718.84
5.4.140.1530.03316.52
5.4.130.1730.04016.32
5.4.120.1770.04316.50
5.4.110.1870.03716.56
5.4.100.1730.03316.25
5.4.90.1570.03316.37
5.4.80.1870.03316.54
5.4.70.1830.03716.54
5.4.60.1730.04316.42
5.4.50.1870.03716.27
5.4.40.1570.03716.49
5.4.30.1800.04316.55
5.4.20.1270.03716.52
5.4.10.0070.04016.27
5.4.00.0100.04015.96
5.3.280.1570.04014.43
5.3.270.1570.03314.51
5.3.260.1470.04314.59
5.3.250.1500.04014.55
5.3.240.1630.02714.70
5.3.230.1600.03314.48
5.3.220.1830.04714.41
5.3.210.1870.03314.52
5.3.200.1870.04314.52
5.3.190.1670.03714.52
5.3.180.1530.03014.43
5.3.170.1500.03314.52
5.3.160.1570.02714.61
5.3.150.1530.03014.57
5.3.140.1370.02714.50
5.3.130.1870.03314.39
5.3.120.1730.04714.39
5.3.110.1730.04014.64
5.3.100.1670.04314.06
5.3.90.1830.04013.88
5.3.80.1730.04313.98
5.3.70.1800.03713.79
5.3.60.1730.04313.91
5.3.50.1800.03714.04
5.3.40.1730.04313.79
5.3.30.1530.04313.86
5.3.20.1570.04013.63
5.3.10.1730.03713.75
5.3.00.1470.03713.58
5.2.170.1430.03711.04
5.2.160.1330.02311.20
5.2.150.1230.03011.00
5.2.140.1200.03311.05
5.2.130.1630.02710.95
5.2.120.1470.03710.93
5.2.110.1430.03710.96
5.2.100.1500.03311.01
5.2.90.1470.03710.95
5.2.80.1500.03310.98
5.2.70.1530.03711.10
5.2.60.1470.04310.91
5.2.50.1500.03710.90
5.2.40.1270.03711.14
5.2.30.1000.02711.05
5.2.20.1200.03310.79
5.2.10.1130.04310.80
5.2.00.1270.03010.71
5.1.60.1270.0279.89
5.1.50.1030.02010.08
5.1.40.1130.0339.95
5.1.30.1230.03310.34
5.1.20.1270.03010.21
5.1.10.1200.0379.96
5.1.00.1200.03310.05
5.0.50.0530.0178.46
5.0.40.0670.0338.28
5.0.30.0600.0338.12
5.0.20.0600.0208.10
5.0.10.0600.0238.07
5.0.00.0570.0338.13
4.4.90.0630.0207.93
4.4.80.0600.0177.93
4.4.70.0700.0237.93
4.4.60.0570.0137.93
4.4.50.0500.0177.93
4.4.40.0570.0237.93
4.4.30.0530.0137.93
4.4.20.0630.0177.93
4.4.10.0600.0177.93
4.4.00.0670.0407.93
4.3.110.0530.0207.93
4.3.100.0570.0137.93
4.3.90.0570.0207.93
4.3.80.0530.0237.93
4.3.70.0570.0207.93
4.3.60.0630.0237.93
4.3.50.0500.0177.93
4.3.40.0670.0307.93
4.3.30.0230.0177.93
4.3.20.0230.0177.93
4.3.10.0270.0137.93
4.3.00.0330.0137.93

preferences:
140.49 ms | 1394 KiB | 7 Q