3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = TRUE; $b = 'abc'; $c = 123; if($a){ echo $a; if($b) { echo $b; } } else echo $c; endif;

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.04718.71
5.4.250.0070.05018.79
5.4.240.0070.05018.93
5.4.230.0000.05718.79
5.4.220.0000.05718.79
5.4.210.0100.04719.01
5.4.200.0100.04718.66
5.4.190.0170.04018.64
5.4.180.0130.06318.69
5.4.170.0130.04318.91
5.4.160.0100.04718.94
5.4.150.0100.05018.90
5.4.140.0130.06016.51
5.4.130.0070.04716.33
5.4.120.0070.05316.57
5.4.110.0030.06316.42
5.4.100.0100.04316.44
5.4.90.0000.05316.57
5.4.80.0070.04716.29
5.4.70.0000.05316.42
5.4.60.0100.04716.37
5.4.50.0100.04316.22
5.4.40.0100.04316.43
5.4.30.0070.04716.36
5.4.20.0100.04716.35
5.4.10.0000.05316.45
5.4.00.0100.04315.86
5.3.280.0170.04014.43
5.3.270.0030.08014.48
5.3.260.0070.06314.62
5.3.250.0100.04314.46
5.3.240.0070.05314.52
5.3.230.0000.05314.61
5.3.220.0070.05314.36
5.3.210.0230.05714.57
5.3.200.0070.05314.44
5.3.190.0030.05314.61
5.3.180.0100.07014.58
5.3.170.0130.04014.66
5.3.160.0030.05014.52
5.3.150.0130.04314.57
5.3.140.0070.04714.47
5.3.130.0100.06714.54
5.3.120.0100.04714.55
5.3.110.0030.05314.39
5.3.100.0030.05314.04
5.3.90.0030.06714.03
5.3.80.0130.04313.94
5.3.70.0130.06314.07
5.3.60.0130.04014.02
5.3.50.0170.04013.88
5.3.40.0000.05714.05
5.3.30.0100.04714.00
5.3.20.0070.04713.70
5.3.10.0100.04713.64
5.3.00.0100.04313.52
5.2.170.0070.04011.06
5.2.160.0030.04011.14
5.2.150.0030.04311.03
5.2.140.0030.04311.15
5.2.130.0070.03711.02
5.2.120.0030.04010.93
5.2.110.0030.04011.12
5.2.100.0070.05711.11
5.2.90.0070.03711.02
5.2.80.0000.05311.11
5.2.70.0100.04311.09
5.2.60.0070.04311.07
5.2.50.0130.04311.03
5.2.40.0070.03711.00
5.2.30.0170.04011.00
5.2.20.0030.05310.79
5.2.10.0000.04010.93
5.2.00.0030.04010.66
5.1.60.0000.03310.19
5.1.50.0030.0339.94
5.1.40.0030.03310.02
5.1.30.0070.04010.09
5.1.20.0030.03310.29
5.1.10.0000.0379.95
5.1.00.0100.03010.21
5.0.50.0070.0238.61
5.0.40.0030.0238.35
5.0.30.0030.0408.09
5.0.20.0000.0308.02
5.0.10.0070.0238.15
5.0.00.0030.0408.21
4.4.90.0070.0207.07
4.4.80.0000.0237.07
4.4.70.0030.0207.07
4.4.60.0030.0207.07
4.4.50.0000.0237.07
4.4.40.0000.0337.07
4.4.30.0070.0177.07
4.4.20.0030.0207.07
4.4.10.0000.0237.07
4.4.00.0000.0477.07
4.3.110.0000.0237.07
4.3.100.0030.0177.06
4.3.90.0000.0237.04
4.3.80.0030.0307.04
4.3.70.0030.0207.04
4.3.60.0030.0207.04
4.3.50.0100.0177.04
4.3.40.0030.0307.04
4.3.30.0030.0207.04
4.3.20.0000.0237.04
4.3.10.0030.0207.04
4.3.00.0130.0206.85

preferences:
141.24 ms | 1394 KiB | 7 Q