3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = false; $b = true; $c = false; if ($a ? $b : $c) {    echo 'false'; } 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.0100.05318.91
5.4.250.0170.05318.88
5.4.240.0000.06718.88
5.4.230.0170.05019.02
5.4.220.0130.06718.93
5.4.210.0130.04719.01
5.4.200.0100.05718.96
5.4.190.0130.05018.82
5.4.180.0030.05718.73
5.4.170.0030.05718.63
5.4.160.0100.05318.72
5.4.150.0070.05718.91
5.4.140.0000.05716.54
5.4.130.0070.06016.56
5.4.120.0170.05016.32
5.4.110.0130.04316.25
5.4.100.0070.05316.60
5.4.90.0170.04316.36
5.4.80.0100.04716.34
5.4.70.0030.05716.27
5.4.60.0130.04316.41
5.4.50.0130.05016.38
5.4.40.0100.06016.45
5.4.30.0130.04716.32
5.4.20.0070.05016.42
5.4.10.0030.06716.57
5.4.00.0130.06015.69
5.3.280.0100.06014.44
5.3.270.0070.06014.57
5.3.260.0130.05714.50
5.3.250.0100.05014.57
5.3.240.0070.05714.73
5.3.230.0070.07314.50
5.3.220.0100.05314.63
5.3.210.0100.05014.55
5.3.200.0030.05014.54
5.3.190.0070.05014.45
5.3.180.0000.05314.34
5.3.170.0130.05314.54
5.3.160.0170.06714.54
5.3.150.0030.05714.63
5.3.140.0130.06314.37
5.3.130.0170.05014.24
5.3.120.0030.05714.57
5.3.110.0070.05314.43
5.3.100.0100.05014.00
5.3.90.0100.06013.91
5.3.80.0100.06313.79
5.3.70.0170.06314.02
5.3.60.0030.07713.85
5.3.50.0070.05713.64
5.3.40.0000.06013.97
5.3.30.0100.06713.80
5.3.20.0100.04713.66
5.3.10.0170.03713.42
5.3.00.0170.04713.76
5.2.170.0100.04311.03
5.2.160.0070.04711.03
5.2.150.0030.06311.12
5.2.140.0070.04311.04
5.2.130.0070.04011.00
5.2.120.0100.04711.16
5.2.110.0030.05711.09
5.2.100.0130.03311.07
5.2.90.0070.03711.15
5.2.80.0070.04311.06
5.2.70.0070.05711.21
5.2.60.0100.03711.03
5.2.50.0170.05011.10
5.2.40.0100.04010.89
5.2.30.0030.04310.95
5.2.20.0000.04311.02
5.2.10.0000.04311.04
5.2.00.0070.03710.75
5.1.60.0100.03010.16
5.1.50.0070.03010.16
5.1.40.0170.03310.00
5.1.30.0070.03310.47
5.1.20.0070.05310.26
5.1.10.0000.04010.00
5.1.00.0070.03310.00
5.0.50.0030.0408.57
5.0.40.0070.0378.42
5.0.30.0030.0478.16
5.0.20.0030.0308.17
5.0.10.0100.0338.19
5.0.00.0000.0478.09
4.4.90.0000.0336.70
4.4.80.0070.0236.70
4.4.70.0070.0236.70
4.4.60.0000.0276.70
4.4.50.0000.0236.70
4.4.40.0070.0436.70
4.4.30.0000.0236.70
4.4.20.0000.0276.70
4.4.10.0000.0236.70
4.4.00.0030.0476.70
4.3.110.0000.0276.70
4.3.100.0070.0176.70
4.3.90.0030.0306.70
4.3.80.0000.0376.70
4.3.70.0030.0206.70
4.3.60.0000.0336.70
4.3.50.0070.0276.70
4.3.40.0000.0476.70
4.3.30.0000.0336.70
4.3.20.0030.0276.70
4.3.10.0070.0176.70
4.3.00.0000.02013.43

preferences:
139.59 ms | 1394 KiB | 7 Q