3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = false; $b = true; $c = false; if ($a) {    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.04719.00
5.4.250.0100.06019.01
5.4.240.0100.04718.93
5.4.230.0030.05718.95
5.4.220.0130.04718.73
5.4.210.0100.04718.73
5.4.200.0100.04718.64
5.4.190.0100.04718.79
5.4.180.0070.05018.82
5.4.170.0070.05319.01
5.4.160.0030.05318.84
5.4.150.0100.05018.77
5.4.140.0030.07716.57
5.4.130.0030.07016.37
5.4.120.0070.04716.33
5.4.110.0070.05316.46
5.4.100.0070.04716.65
5.4.90.0030.05016.46
5.4.80.0070.05016.46
5.4.70.0130.05016.29
5.4.60.0070.04716.26
5.4.50.0100.04316.40
5.4.40.0030.05716.38
5.4.30.0070.04716.37
5.4.20.0130.04016.34
5.4.10.0130.07016.40
5.4.00.0070.05015.74
5.3.280.0070.05714.59
5.3.270.0130.05714.70
5.3.260.0070.05014.49
5.3.250.0070.07314.70
5.3.240.0130.04714.62
5.3.230.0000.05714.44
5.3.220.0130.04314.42
5.3.210.0100.05014.57
5.3.200.0030.05714.48
5.3.190.0070.05014.62
5.3.180.0170.04314.55
5.3.170.0100.05714.45
5.3.160.0070.06014.61
5.3.150.0100.04714.57
5.3.140.0170.04014.39
5.3.130.0030.07714.55
5.3.120.0000.06014.59
5.3.110.0070.05014.42
5.3.100.0000.06013.73
5.3.90.0100.04313.94
5.3.80.0070.07013.86
5.3.70.0030.05713.89
5.3.60.0000.05314.01
5.3.50.0070.05013.89
5.3.40.0100.05013.97
5.3.30.0130.03713.95
5.3.20.0030.05013.73
5.3.10.0070.07013.66
5.3.00.0000.05313.74
5.2.170.0000.04710.92
5.2.160.0030.04010.98
5.2.150.0100.03311.15
5.2.140.0030.04011.29
5.2.130.0030.05011.20
5.2.120.0070.04311.13
5.2.110.0030.04011.25
5.2.100.0070.04311.10
5.2.90.0030.04310.98
5.2.80.0100.03710.93
5.2.70.0000.04710.97
5.2.60.0030.06310.95
5.2.50.0000.04311.11
5.2.40.0070.05311.02
5.2.30.0100.03311.06
5.2.20.0030.04010.99
5.2.10.0100.03311.07
5.2.00.0130.05010.60
5.1.60.0030.0479.89
5.1.50.0030.03710.09
5.1.40.0030.0339.88
5.1.30.0030.05310.40
5.1.20.0100.03010.20
5.1.10.0230.0339.92
5.1.00.0070.0379.95
5.0.50.0030.0278.47
5.0.40.0000.0408.47
5.0.30.0000.0438.15
5.0.20.0030.0308.25
5.0.10.0000.0308.08
5.0.00.0030.0378.09
4.4.90.0030.0206.40
4.4.80.0030.0276.40
4.4.70.0000.0206.40
4.4.60.0000.0206.40
4.4.50.0030.0206.40
4.4.40.0000.0376.40
4.4.30.0000.0236.40
4.4.20.0070.0176.40
4.4.10.0030.0206.40
4.4.00.0030.0436.40
4.3.110.0030.0236.40
4.3.100.0030.0206.40
4.3.90.0030.0306.40
4.3.80.0000.0336.40
4.3.70.0000.0306.40
4.3.60.0000.0206.40
4.3.50.0030.0206.40
4.3.40.0000.0436.40
4.3.30.0000.0306.40
4.3.20.0000.0306.40
4.3.10.0000.0306.40
4.3.00.0000.0306.74

preferences:
141.26 ms | 1394 KiB | 7 Q