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.05718.70
5.4.250.0200.04018.65
5.4.240.0030.05718.83
5.4.230.0130.05718.84
5.4.220.0100.07718.55
5.4.210.0270.05719.01
5.4.200.0070.06718.65
5.4.190.0000.05718.93
5.4.180.0130.04318.93
5.4.170.0070.05018.81
5.4.160.0070.05018.77
5.4.150.0030.05718.89
5.4.140.0100.04716.45
5.4.130.0130.04316.53
5.4.120.0030.05316.55
5.4.110.0130.04016.34
5.4.100.0100.06316.46
5.4.90.0070.04716.63
5.4.80.0170.05316.36
5.4.70.0030.05016.23
5.4.60.0100.04316.43
5.4.50.0100.04716.35
5.4.40.0100.04316.49
5.4.30.0070.05016.26
5.4.20.0030.05316.43
5.4.10.0100.04716.40
5.4.00.0100.04316.02
5.3.280.0130.04314.61
5.3.270.0100.04714.66
5.3.260.0000.05714.50
5.3.250.0130.04014.49
5.3.240.0070.05014.62
5.3.230.0070.05014.44
5.3.220.0070.06314.41
5.3.210.0070.05714.57
5.3.200.0170.04314.58
5.3.190.0030.05314.44
5.3.180.0170.03714.72
5.3.170.0030.05314.57
5.3.160.0070.04714.45
5.3.150.0070.05714.58
5.3.140.0070.04714.39
5.3.130.0030.05714.43
5.3.120.0170.04314.46
5.3.110.0200.04014.39
5.3.100.0030.06013.89
5.3.90.0000.08014.02
5.3.80.0070.05014.04
5.3.70.0000.05713.88
5.3.60.0100.04713.94
5.3.50.0100.04714.10
5.3.40.0070.04713.95
5.3.30.0030.05013.92
5.3.20.0070.05013.55
5.3.10.0100.04313.36
5.3.00.0130.04313.65
5.2.170.0070.05011.16
5.2.160.0000.05010.93
5.2.150.0030.04311.14
5.2.140.0100.03711.15
5.2.130.0070.03710.99
5.2.120.0030.04011.11
5.2.110.0100.03711.20
5.2.100.0030.04011.00
5.2.90.0030.05711.01
5.2.80.0030.06311.11
5.2.70.0000.04711.09
5.2.60.0070.04010.94
5.2.50.0070.04010.94
5.2.40.0070.04011.00
5.2.30.0070.04010.98
5.2.20.0030.04011.07
5.2.10.0030.05710.78
5.2.00.0130.03310.79
5.1.60.0070.03710.04
5.1.50.0000.0409.92
5.1.40.0070.05010.21
5.1.30.0070.03310.41
5.1.20.0070.03710.25
5.1.10.0070.0339.98
5.1.00.0070.0339.95
5.0.50.0070.0378.32
5.0.40.0130.0178.44
5.0.30.0000.0578.07
5.0.20.0030.0278.10
5.0.10.0070.0278.10
5.0.00.0070.0408.22
4.4.90.0070.0307.04
4.4.80.0030.0207.04
4.4.70.0030.0207.04
4.4.60.0030.0207.04
4.4.50.0000.0237.04
4.4.40.0000.0377.04
4.4.30.0000.0277.04
4.4.20.0030.0207.04
4.4.10.0070.0177.04
4.4.00.0000.0337.04
4.3.110.0070.0207.04
4.3.100.0030.0207.04
4.3.90.0030.0207.04
4.3.80.0030.0337.04
4.3.70.0030.0237.04
4.3.60.0030.0207.04
4.3.50.0000.0277.04
4.3.40.0030.0337.04
4.3.30.0000.0277.04
4.3.20.0030.0207.04
4.3.10.0030.0237.04
4.3.00.0070.01314.49

preferences:
132.67 ms | 1398 KiB | 7 Q