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.0330.06719.23
5.4.300.0270.03318.94
5.4.290.0270.06319.09
5.4.280.0370.07019.19
5.4.270.0230.05319.08
5.4.260.0300.04319.01
5.4.250.0270.06318.99
5.4.240.0200.05018.97
5.4.230.0230.07319.21
5.4.220.0230.05319.21
5.4.210.0230.04318.97
5.4.200.0230.04018.93
5.4.190.0300.04018.93
5.4.180.0230.05019.18
5.4.170.0230.05318.93
5.4.160.0270.06318.82
5.4.150.0270.05019.19
5.4.140.0200.04016.43
5.4.130.0300.06316.34
5.4.120.0270.04316.40
5.4.110.0370.06016.35
5.4.100.0370.06316.40
5.4.90.0300.06016.50
5.4.80.0330.06316.17
5.4.70.0230.03316.53
5.4.60.0230.04716.51
5.4.50.0270.05316.48
5.4.40.0200.08316.53
5.4.30.0330.05716.56
5.4.20.0200.06316.52
5.4.10.0230.07016.47
5.4.00.0270.04315.94
5.3.280.0230.03714.42
5.3.270.0300.04314.44
5.3.260.0370.06714.51
5.3.250.0230.03714.69
5.3.240.0330.04714.48
5.3.230.0300.07014.45
5.3.220.0230.04314.43
5.3.210.0300.04314.52
5.3.200.0330.06314.42
5.3.190.0330.06714.50
5.3.180.0300.06314.46
5.3.170.0230.03714.49
5.3.160.0270.06714.51
5.3.150.0300.05014.54
5.3.140.0270.04314.60
5.3.130.0330.07014.49
5.3.120.0330.04014.52
5.3.110.0270.06014.49
5.3.100.0270.06714.00
5.3.90.0230.07014.06
5.3.80.0100.04713.89
5.3.70.0200.04314.05
5.3.60.0170.05313.80
5.3.50.0200.04313.84
5.3.40.0200.04713.89
5.3.30.0270.06013.84
5.3.20.0230.06713.56
5.3.10.0270.06313.75
5.3.00.0230.06713.41
5.2.170.0170.03011.43
5.2.160.0270.05311.43
5.2.150.0170.06011.43
5.2.140.0230.04011.43
5.2.130.0170.06011.43
5.2.120.0200.05711.43
5.2.110.0130.04711.43
5.2.100.0170.03011.43
5.2.90.0230.04311.43
5.2.80.0200.05711.43
5.2.70.0200.03311.43
5.2.60.0200.04711.43
5.2.50.0230.03011.43
5.2.40.0230.05011.43
5.2.30.0200.05011.43
5.2.20.0200.05011.43
5.2.10.0170.04711.43
5.2.00.0270.05011.43
5.1.60.0170.02711.43
5.1.50.0170.05011.43
5.1.40.0200.03011.43
5.1.30.0200.03311.43
5.1.20.0230.04711.43
5.1.10.0100.02711.43
5.1.00.0130.02711.43
5.0.50.0070.02011.43
5.0.40.0200.01311.43
5.0.30.0070.06711.43
5.0.20.0130.02711.43
5.0.10.0100.04311.43
5.0.00.0070.06311.43
4.4.90.0130.03011.43
4.4.80.0170.00711.43
4.4.70.0070.01711.43
4.4.60.0100.03011.43
4.4.50.0070.03011.43
4.4.40.0100.03311.43
4.4.30.0130.03011.43
4.4.20.0070.03311.43
4.4.10.0070.03011.43
4.4.00.0100.06011.43
4.3.110.0130.03311.43
4.3.100.0070.03011.43
4.3.90.0070.03011.43
4.3.80.0100.03311.43
4.3.70.0070.02011.43
4.3.60.0100.03311.43
4.3.50.0100.02311.43
4.3.40.0130.02711.43
4.3.30.0000.02011.43
4.3.20.0070.02011.43
4.3.10.0070.02011.43
4.3.00.0030.02011.43

preferences:
138.76 ms | 1394 KiB | 7 Q