3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = false; $b = true; $c = false; if ($a ? $b : $c) {    echo 1; } else {    echo 'true'; }

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.260.3870.04019.13
5.4.250.3770.03018.93
5.4.240.3870.03719.12
5.4.230.3970.03719.15
5.4.220.3570.03719.19
5.4.210.4370.03319.03
5.4.200.3600.04019.12
5.4.190.4200.03719.21
5.4.180.3670.04019.21
5.4.170.3970.03718.95
5.4.160.3930.03719.15
5.4.150.4130.04019.05
5.4.140.4370.03316.52
5.4.130.4670.03716.35
5.4.120.4330.03016.50
5.4.110.3570.04016.45
5.4.100.4100.04016.45
5.4.90.3830.03716.22
5.4.80.4270.03016.50
5.4.70.3670.03716.21
5.4.60.3600.03716.46
5.4.50.3600.03016.49
5.4.40.3970.03016.20
5.4.30.3700.03716.45
5.4.20.4170.03316.45
5.4.10.4470.04316.45
5.4.00.4230.03315.89
5.3.280.3800.04314.54
5.3.270.3600.04014.55
5.3.260.3770.04014.53
5.3.250.4000.03014.53
5.3.240.4230.03714.56
5.3.230.4200.02714.54
5.3.220.4130.04714.51
5.3.210.3570.03314.52
5.3.200.3570.03014.36
5.3.190.3900.03714.50
5.3.180.3730.04014.49
5.3.170.3870.03314.49
5.3.160.3900.03714.48
5.3.150.4070.03314.46
5.3.140.4000.03714.45
5.3.130.3930.03014.49
5.3.120.3530.04014.48
5.3.110.3770.03314.49
5.3.100.4200.03713.97
5.3.90.4700.02713.96
5.3.80.4630.04013.94
5.3.70.4730.03713.84
5.3.60.4730.03013.95
5.3.50.4700.03014.04
5.3.40.4000.03713.78
5.3.30.4630.04013.87
5.3.20.4730.03313.50
5.3.10.4530.03713.75
5.3.00.3870.03713.65
5.2.170.3870.03311.13
5.2.160.3330.03011.11
5.2.150.3630.02711.09
5.2.140.3630.02311.03
5.2.130.4000.03011.18
5.2.120.3530.03011.05
5.2.110.3900.02711.07
5.2.100.3200.03011.07
5.2.90.3600.02011.07
5.2.80.3300.03011.08
5.2.70.3570.02710.97
5.2.60.3370.02710.94
5.2.50.3570.03010.84
5.2.40.2800.02710.91
5.2.30.2830.03010.90
5.2.20.3400.02010.91
5.2.10.2970.03011.01
5.2.00.2770.03310.60
5.1.60.2730.02710.00
5.1.50.2770.02010.01
5.1.40.3200.0239.99
5.1.30.3200.02710.33
5.1.20.3400.02710.34
5.1.10.3100.0309.97
5.1.00.3230.02010.14
5.0.50.1730.0238.55
5.0.40.1670.0208.38
5.0.30.1600.0438.14
5.0.20.1600.0178.34
5.0.10.1430.0238.31
5.0.00.1800.0338.18
4.4.90.1270.0105.80
4.4.80.1670.0135.76
4.4.70.1900.0175.89
4.4.60.1800.0175.80
4.4.50.1870.0175.83
4.4.40.1530.0275.84
4.4.30.1570.0175.79
4.4.20.1800.0135.85
4.4.10.1870.0175.85
4.4.00.1830.0275.92
4.3.110.1700.0135.70
4.3.100.1700.0135.75
4.3.90.1830.0135.70
4.3.80.1400.0275.76
4.3.70.1500.0135.78
4.3.60.1300.0105.85
4.3.50.1330.0175.72
4.3.40.1200.0235.70
4.3.30.0700.0175.54
4.3.20.0800.0205.54
4.3.10.0870.0135.54
4.3.00.0830.0175.54

preferences:
142.08 ms | 1394 KiB | 7 Q