3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('CONSTANT',1); define('_CONSTANT',0); define('EMPTY',''); if (!empty(EMPTY)) { if(!((boolean) _CONSTANT)) { print "One"; } } else if(constant('CONSTANT') == 1){ print "Two"; }

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.390.0180.05918.69
5.4.380.0240.06618.70
5.4.370.0260.06218.65
5.4.360.0220.05318.68
5.4.350.0230.05318.75
5.4.340.0190.07418.71
5.4.320.0200.05718.77
5.4.310.0160.06118.77
5.4.300.0170.06118.63
5.4.290.0240.05618.57
5.4.280.0190.06318.58
5.4.270.0190.05718.67
5.4.260.0290.05118.68
5.4.250.0210.06218.75
5.4.240.0280.06118.60
5.4.230.0260.05718.68
5.4.220.0230.05718.57
5.4.210.0190.06018.57
5.4.200.0290.05216.62
5.4.190.0290.05118.78
5.4.180.0310.05218.63
5.4.170.0200.06318.68
5.4.160.0180.06318.62
5.4.150.0260.06018.63
5.4.140.0270.05416.29
5.4.130.0220.06116.28
5.4.120.0230.05716.27
5.4.110.0230.05116.27
5.4.100.0210.05716.25
5.4.90.0180.06316.31
5.4.80.0300.04616.27
5.4.70.0170.06216.21
5.4.60.0230.05416.29
5.4.50.0280.04616.26
5.4.40.0230.05716.23
5.4.30.0210.05116.19
5.4.20.0240.05116.23
5.4.10.0230.05616.31
5.4.00.0230.05315.78
5.3.290.0240.06314.66
5.3.280.0220.05714.64
5.3.270.0220.06914.59
5.3.260.0180.07414.63
5.3.250.0210.05914.66
5.3.240.0270.05714.61
5.3.230.0200.06114.58
5.3.220.0230.05414.55
5.3.210.0220.06414.59
5.3.200.0210.05914.59
5.3.190.0200.06014.54
5.3.180.0230.05014.59
5.3.170.0340.05214.59
5.3.160.0310.05614.59
5.3.150.0190.06814.53
5.3.140.0340.05214.59
5.3.130.0220.05914.52
5.3.120.0230.06914.51
5.3.110.0200.06214.55
5.3.100.0240.05813.99
5.3.90.0240.05614.05
5.3.80.0240.04813.97
5.3.70.0200.05814.05
5.3.60.0280.05813.99
5.3.50.0220.06013.93
5.3.40.0210.05613.94
5.3.30.0160.06213.94
5.3.20.0140.06113.75
5.3.10.0230.05213.59
5.3.00.0230.05613.61
5.2.170.0190.04711.11
5.2.160.0220.04011.12
5.2.150.0130.05311.17
5.2.140.0240.04311.13
5.2.130.0190.04611.09
5.2.120.0120.04711.10
5.2.110.0260.03811.18
5.2.100.0200.04211.08
5.2.90.0130.04711.13
5.2.80.0210.05111.12
5.2.70.0180.04711.14
5.2.60.0110.05111.09
5.2.50.0220.04411.01
5.2.40.0120.04610.96
5.2.30.0240.03911.08
5.2.20.0200.04610.92
5.2.10.0180.04310.97
5.2.00.0130.04310.71
5.1.60.0140.03210.05
5.1.50.0110.04310.05
5.1.40.0170.03610.07
5.1.30.0140.03710.34
5.1.20.0130.04710.42
5.1.10.0160.03910.08
5.1.00.0180.03310.13
5.0.50.0080.0338.57
5.0.40.0120.0298.45
5.0.30.0120.0468.26
5.0.20.0090.0298.24
5.0.10.0110.0308.19
5.0.00.0140.0468.28
4.4.90.0030.0265.89
4.4.80.0080.0225.88
4.4.70.0100.0285.89
4.4.60.0100.0225.88
4.4.50.0070.0285.88
4.4.40.0140.0365.90
4.4.30.0110.0235.89
4.4.20.0100.0245.95
4.4.10.0090.0245.94
4.4.00.0100.0335.94
4.3.110.0070.0245.80
4.3.100.0130.0215.81
4.3.90.0030.0285.82
4.3.80.0070.0405.82
4.3.70.0130.0215.83
4.3.60.0080.0225.81
4.3.50.0040.0295.78
4.3.40.0040.0415.76
4.3.30.0000.0284.61
4.3.20.0040.0244.54
4.3.10.0100.0214.54
4.3.00.0000.0238.74

preferences:
144.24 ms | 1394 KiB | 7 Q