3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '1' if (empty($a)) { echo 'success'; } else { echo 'fail'; }

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.380.0530.04719.22
5.4.370.0430.03719.06
5.4.360.0400.05018.88
5.4.350.0500.06319.24
5.4.340.0400.04018.98
5.4.320.0600.06019.31
5.4.310.0470.05719.09
5.4.300.0600.06019.15
5.4.290.0600.05318.85
5.4.280.0600.04019.13
5.4.270.0470.04318.94
5.4.260.0370.04718.95
5.4.250.0500.06318.94
5.4.240.0500.06018.99
5.4.230.0500.05719.33
5.4.220.0500.07019.03
5.4.210.0430.03719.07
5.4.200.0400.03719.19
5.4.190.0570.06319.23
5.4.180.0470.04718.84
5.4.170.0530.06319.23
5.4.160.0530.04019.11
5.4.150.0430.05019.20
5.4.140.0600.05716.41
5.4.130.0370.04016.35
5.4.120.0270.04316.51
5.4.110.0300.03716.26
5.4.100.0370.04016.27
5.4.90.0330.03316.26
5.4.80.0300.04716.35
5.4.70.0370.03316.50
5.4.60.0330.03316.54
5.4.50.0430.02316.16
5.4.40.0400.02716.54
5.4.30.0300.03716.16
5.4.20.0330.03316.38
5.4.10.0300.04016.43
5.4.00.0300.03715.95
5.3.290.0430.05014.60
5.3.280.0470.04014.64
5.3.270.0500.05014.48
5.3.260.0530.06314.48
5.3.250.0470.04014.63
5.3.240.0470.03314.52
5.3.230.0400.04714.44
5.3.220.0400.03714.55
5.3.210.0370.03314.62
5.3.200.0400.04014.50
5.3.190.0370.03314.52
5.3.180.0430.03714.65
5.3.170.0300.05014.59
5.3.160.0370.03314.47
5.3.150.0300.04014.42
5.3.140.0400.03014.39
5.3.130.0330.04014.50
5.3.120.0400.03014.50
5.3.110.0330.04714.39
5.3.100.0270.04313.97
5.3.90.0270.03713.86
5.3.80.0300.03713.79
5.3.70.0300.03713.86
5.3.60.0400.03013.81
5.3.50.0330.03313.89
5.3.40.0370.04013.72
5.3.30.0270.04013.68
5.3.20.0370.03313.63
5.3.10.0470.03013.52
5.3.00.0330.03713.41
5.2.170.0230.04310.99
5.2.160.0300.02711.16
5.2.150.0270.03311.10
5.2.140.0270.02710.97
5.2.130.0270.03310.99
5.2.120.0300.02311.02
5.2.110.0270.03011.05
5.2.100.0230.03010.94
5.2.90.0330.03011.19
5.2.80.0300.03711.14
5.2.70.0300.02710.94
5.2.60.0230.03010.90
5.2.50.0230.03010.89
5.2.40.0270.05710.83
5.2.30.0200.03010.81
5.2.20.0270.02710.90
5.2.10.0330.03310.93
5.2.00.0270.05310.57
5.1.60.0300.0279.97
5.1.50.0330.03710.08
5.1.40.0330.04010.07
5.1.30.0300.04010.38
5.1.20.0300.04310.37
5.1.10.0270.03310.04
5.1.00.0330.04310.00
5.0.50.0200.0309.70
5.0.40.0270.0279.70
5.0.30.0270.0409.70
5.0.20.0170.0409.70
5.0.10.0200.0239.70
5.0.00.0130.0439.70
4.4.90.0130.0139.70
4.4.80.0070.0179.70
4.4.70.0130.0309.70
4.4.60.0170.0239.70
4.4.50.0130.0309.70
4.4.40.0170.0339.70
4.4.30.0170.0339.70
4.4.20.0130.0279.70
4.4.10.0170.0339.70
4.4.00.0230.0439.70
4.3.110.0130.0379.70
4.3.100.0130.0279.70
4.3.90.0200.0209.70
4.3.80.0170.0279.70
4.3.70.0230.0209.70
4.3.60.0170.0339.70
4.3.50.0170.0239.70
4.3.40.0130.0379.70
4.3.30.0130.0339.70
4.3.20.0170.0279.70
4.3.10.0100.0239.70
4.3.00.0070.0279.70

preferences:
157.76 ms | 1394 KiB | 7 Q