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.0130.07018.79
5.4.250.0070.05318.84
5.4.240.0000.06019.13
5.4.230.0100.05018.86
5.4.220.0030.06018.82
5.4.210.0070.05318.94
5.4.200.0030.05318.92
5.4.190.0070.07718.79
5.4.180.0030.05318.73
5.4.170.0200.06018.82
5.4.160.0130.04318.91
5.4.150.0070.05318.82
5.4.140.0000.06016.50
5.4.130.0000.05316.37
5.4.120.0130.04316.34
5.4.110.0030.05316.46
5.4.100.0130.06716.45
5.4.90.0030.05016.45
5.4.80.0130.04016.29
5.4.70.0100.07016.44
5.4.60.0130.04016.40
5.4.50.0070.04716.43
5.4.40.0100.04316.34
5.4.30.0170.05716.24
5.4.20.0100.07016.48
5.4.10.0070.06716.43
5.4.00.0030.05315.94
5.3.280.0100.05014.52
5.3.270.0100.07714.46
5.3.260.0130.07314.70
5.3.250.0100.04714.30
5.3.240.0130.04714.75
5.3.230.0170.06014.48
5.3.220.0000.05714.26
5.3.210.0030.05714.41
5.3.200.0000.05314.34
5.3.190.0070.04714.57
5.3.180.0100.04714.34
5.3.170.0070.07714.71
5.3.160.0170.06314.52
5.3.150.0030.07314.40
5.3.140.0070.05314.57
5.3.130.0170.06314.39
5.3.120.0130.06014.44
5.3.110.0130.05314.32
5.3.100.0000.07713.87
5.3.90.0030.06014.02
5.3.80.0070.07013.94
5.3.70.0100.04713.94
5.3.60.0070.05713.77
5.3.50.0130.04313.96
5.3.40.0070.06713.96
5.3.30.0100.04313.90
5.3.20.0030.04713.53
5.3.10.0030.05713.74
5.3.00.0130.06013.51
5.2.170.0070.05711.03
5.2.160.0030.05311.14
5.2.150.0130.04711.16
5.2.140.0000.04711.06
5.2.130.0030.04011.09
5.2.120.0000.04011.12
5.2.110.0030.04311.11
5.2.100.0000.05011.11
5.2.90.0030.04011.21
5.2.80.0070.04310.97
5.2.70.0100.04310.97
5.2.60.0000.04711.07
5.2.50.0130.03310.94
5.2.40.0070.03711.01
5.2.30.0030.06011.06
5.2.20.0030.05710.88
5.2.10.0000.05711.03
5.2.00.0030.03710.93
5.1.60.0100.04010.02
5.1.50.0030.03310.19
5.1.40.0030.04010.04
5.1.30.0030.03710.41
5.1.20.0030.05010.51
5.1.10.0000.03710.04
5.1.00.0030.05010.15
5.0.50.0000.0308.50
5.0.40.0030.0278.45
5.0.30.0000.0608.36
5.0.20.0030.0278.34
5.0.10.0000.0308.14
5.0.00.0030.0438.39
4.4.90.0030.0206.70
4.4.80.0030.0276.70
4.4.70.0030.0176.70
4.4.60.0070.0206.70
4.4.50.0030.0176.70
4.4.40.0000.0336.70
4.4.30.0070.0176.70
4.4.20.0030.0206.70
4.4.10.0030.0206.70
4.4.00.0030.0306.70
4.3.110.0070.0136.70
4.3.100.0000.0236.70
4.3.90.0070.0176.70
4.3.80.0070.0276.70
4.3.70.0030.0276.70
4.3.60.0030.0206.70
4.3.50.0030.0206.70
4.3.40.0030.0376.70
4.3.30.0070.0176.70
4.3.20.0030.0206.70
4.3.10.0000.0236.70
4.3.00.0100.0236.90

preferences:
138.59 ms | 1398 KiB | 7 Q