3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('CONSTANT', 1); define('_CONSTANT', 0); define('EMPTY', ''); if (!empty(EMPTY)) {}

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.0230.05019.23
5.4.300.0270.07719.14
5.4.290.0200.05018.86
5.4.280.0300.05019.21
5.4.270.0270.03719.08
5.4.260.0400.05319.22
5.4.250.0300.05019.05
5.4.240.0230.04719.32
5.4.230.0200.04018.97
5.4.220.0300.04719.14
5.4.210.0230.05318.99
5.4.200.0270.03718.99
5.4.190.0300.03718.85
5.4.180.0330.06019.07
5.4.170.0300.07018.86
5.4.160.0270.03718.82
5.4.150.0270.07319.07
5.4.140.0300.06016.42
5.4.130.0330.05016.48
5.4.120.0270.07016.36
5.4.110.0330.06316.56
5.4.100.0300.07316.56
5.4.90.0300.04316.36
5.4.80.0270.06716.52
5.4.70.0300.05316.52
5.4.60.0300.03016.43
5.4.50.0270.04716.53
5.4.40.0230.07016.48
5.4.30.0270.03316.32
5.4.20.0300.05716.22
5.4.10.0430.03016.38
5.4.00.0230.03315.77
5.3.280.0200.04014.44
5.3.270.0200.04014.40
5.3.260.0230.05314.45
5.3.250.0330.04014.46
5.3.240.0230.04714.62
5.3.230.0230.07714.61
5.3.220.0170.04314.44
5.3.210.0270.06314.55
5.3.200.0170.04314.43
5.3.190.0230.07014.42
5.3.180.0230.05314.41
5.3.170.0230.07714.42
5.3.160.0230.07014.51
5.3.150.0170.04014.44
5.3.140.0270.03014.50
5.3.130.0200.06014.50
5.3.120.0270.04014.38
5.3.110.0300.05314.49
5.3.100.0170.03713.88
5.3.90.0200.04713.85
5.3.80.0200.04014.11
5.3.70.0230.05713.97
5.3.60.0170.04013.86
5.3.50.0230.05713.79
5.3.40.0270.04713.89
5.3.30.0270.05013.86
5.3.20.0270.03713.55
5.3.10.0200.03713.70
5.3.00.0300.04313.47
5.2.170.0270.03012.14
5.2.160.0170.06012.14
5.2.150.0200.06012.14
5.2.140.0130.04712.14
5.2.130.0170.03012.14
5.2.120.0300.03712.14
5.2.110.0300.05012.14
5.2.100.0200.04012.14
5.2.90.0200.02712.14
5.2.80.0300.03312.14
5.2.70.0200.04712.14
5.2.60.0200.03712.14
5.2.50.0300.03012.14
5.2.40.0270.05012.14
5.2.30.0200.03712.14
5.2.20.0230.05712.14
5.2.10.0170.03712.14
5.2.00.0270.02312.14
5.1.60.0170.05312.14
5.1.50.0200.04012.14
5.1.40.0230.02312.14
5.1.30.0270.05312.14
5.1.20.0200.02312.14
5.1.10.0230.04012.14
5.1.00.0270.04012.14
5.0.50.0130.05012.14
5.0.40.0100.02712.14
5.0.30.0070.04712.14
5.0.20.0070.02012.14
5.0.10.0100.01712.14
5.0.00.0100.03712.14
4.4.90.0030.02012.14
4.4.80.0070.01712.14
4.4.70.0070.02012.14
4.4.60.0100.01712.14
4.4.50.0130.01312.14
4.4.40.0070.03012.14
4.4.30.0070.01712.14
4.4.20.0100.03012.14
4.4.10.0070.03312.14
4.4.00.0130.04312.14
4.3.110.0100.04012.14
4.3.100.0130.01712.14
4.3.90.0030.02712.14
4.3.80.0100.04012.14
4.3.70.0130.03012.14
4.3.60.0170.02312.14
4.3.50.0100.02712.14
4.3.40.0130.05012.14
4.3.30.0070.02312.14
4.3.20.0070.03712.14
4.3.10.0070.03012.14
4.3.00.0030.03312.14

preferences:
140.01 ms | 1394 KiB | 7 Q