3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'Yes'; try{ echo "Do I exist in try? $foo\n"; }catch(Exception $e){ } try{ throw new Exception() }catch(Exception $e){ echo "Do I exist in catch? $foo\n"; }

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.270.0130.06319.00
5.4.260.0230.06718.90
5.4.250.0030.07318.68
5.4.240.0030.05718.97
5.4.230.0200.04718.89
5.4.220.0100.08018.79
5.4.210.0200.04719.00
5.4.200.0070.05318.98
5.4.190.0200.05018.97
5.4.180.0100.06718.66
5.4.170.0130.06018.89
5.4.160.0130.05318.78
5.4.150.0100.06318.93
5.4.140.0130.05716.39
5.4.130.0100.05316.28
5.4.120.0070.05316.48
5.4.110.0070.05716.33
5.4.100.0130.06316.56
5.4.90.0070.05016.51
5.4.80.0230.05716.39
5.4.70.0030.06016.45
5.4.60.0130.05316.45
5.4.50.0200.05316.43
5.4.40.0100.05016.39
5.4.30.0030.07316.33
5.4.20.0070.05316.42
5.4.10.0100.06016.43
5.4.00.0070.06015.73
5.3.280.0130.06314.61
5.3.270.0170.06314.61
5.3.260.0070.07714.63
5.3.250.0200.06314.38
5.3.240.0000.06014.66
5.3.230.0070.07314.47
5.3.220.0000.05714.44
5.3.210.0100.06314.49
5.3.200.0070.07714.34
5.3.190.0130.06714.73
5.3.180.0100.05714.58
5.3.170.0170.04014.27
5.3.160.0070.07714.44
5.3.150.0100.05714.61
5.3.140.0000.07714.42
5.3.130.0100.05014.39
5.3.120.0030.06014.43
5.3.110.0030.05714.25
5.3.100.0100.04713.97
5.3.90.0130.06313.91
5.3.80.0200.05714.07
5.3.70.0100.04713.98
5.3.60.0200.04713.84
5.3.50.0030.06713.97
5.3.40.0170.06313.65
5.3.30.0230.05313.74
5.3.20.0030.05313.74
5.3.10.0070.06713.42
5.3.00.0100.05713.34
5.2.170.0170.04711.03
5.2.160.0100.04311.03
5.2.150.0130.03711.17
5.2.140.0100.04311.05
5.2.130.0000.04311.02
5.2.120.0130.04711.01
5.2.110.0230.04011.10
5.2.100.0100.03311.00
5.2.90.0130.03711.10
5.2.80.0070.04011.09
5.2.70.0030.04310.99
5.2.60.0200.04010.97
5.2.50.0130.05310.78
5.2.40.0100.05011.09
5.2.30.0070.04010.80
5.2.20.0170.03710.96
5.2.10.0100.04311.03
5.2.00.0100.05310.70
5.1.60.0130.03710.06
5.1.50.0100.04010.23
5.1.40.0000.0579.83
5.1.30.0000.04010.25
5.1.20.0130.03310.44
5.1.10.0000.04310.13
5.1.00.0030.03710.26
5.0.50.0030.0308.60
5.0.40.0070.0378.32
5.0.30.0000.0508.11
5.0.20.0030.0278.19
5.0.10.0030.0408.22
5.0.00.0070.0508.27
4.4.90.0070.0206.71
4.4.80.0030.0236.71
4.4.70.0070.0206.71
4.4.60.0070.0236.71
4.4.50.0000.0276.71
4.4.40.0070.0436.71
4.4.30.0100.0206.71
4.4.20.0070.0236.71
4.4.10.0070.0306.71
4.4.00.0030.0376.71
4.3.110.0070.0206.71
4.3.100.0030.0306.71
4.3.90.0070.0276.71
4.3.80.0030.0336.71
4.3.70.0000.0236.71
4.3.60.0000.0336.71
4.3.50.0070.0306.71
4.3.40.0030.0306.71
4.3.30.0000.0306.71
4.3.20.0070.0236.71
4.3.10.0000.0276.71
4.3.00.0070.0237.02

preferences:
140.21 ms | 1394 KiB | 7 Q