3v4l.org

run code in 300+ PHP versions simultaneously
<?php function whatWillYouGet() { try { return 1; } catch(Exception $ex) {} finally { return 8; } } if (whatWillYouGet()==8) die("But I already returned !!"); ?>

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)
8.3.40.0040.01118.56
8.3.30.0110.00418.71
8.3.20.0080.00018.61
8.3.10.0090.00018.60
8.3.00.0040.00419.25
8.2.170.0090.00622.96
8.2.160.0100.00718.74
8.2.150.0040.00724.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00720.79
8.2.110.0040.00721.14
8.2.100.0090.00319.34
8.2.90.0000.00817.91
8.2.80.0050.00320.36
8.2.70.0060.00317.50
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0000.00919.35
8.2.30.0030.00617.59
8.2.20.0030.00617.72
8.2.10.0060.00317.59
8.2.00.0030.00617.54
8.1.270.0080.00023.99
8.1.260.0030.01026.35
8.1.250.0070.00028.09
8.1.240.0080.00022.14
8.1.230.0040.00820.88
8.1.220.0000.00917.74
8.1.210.0000.00818.85
8.1.200.0040.00417.13
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0050.00318.47
8.1.150.0000.00718.47
8.1.140.0080.00017.25
8.1.130.0030.00317.36
8.1.120.0050.00317.40
8.1.110.0040.00417.42
8.1.100.0040.00417.35
8.1.90.0070.00017.27
8.1.80.0040.00417.37
8.1.70.0070.00017.30
8.1.60.0080.00017.48
8.1.50.0030.00517.32
8.1.40.0090.00017.45
8.1.30.0090.00017.58
8.1.20.0000.00717.54
8.1.10.0040.00417.43
8.1.00.0040.00417.35
8.0.300.0040.00420.05
8.0.290.0000.00816.63
8.0.280.0000.00618.04
8.0.270.0020.00517.06
8.0.260.0000.00716.60
8.0.250.0040.00416.76
8.0.240.0030.00316.88
8.0.230.0050.00216.88
8.0.220.0070.00016.80
8.0.210.0000.00716.82
8.0.200.0000.00616.88
8.0.190.0030.00516.75
8.0.180.0000.00716.74
8.0.170.0050.00316.86
8.0.160.0000.00716.78
8.0.150.0080.00016.80
8.0.140.0050.00316.79
8.0.130.0050.00013.22
8.0.120.0060.00316.81
8.0.110.0030.00516.73
8.0.100.0050.00316.92
8.0.90.0000.00716.75
8.0.80.0080.01316.93
8.0.70.0040.00416.75
8.0.60.0060.00316.73
8.0.50.0080.00016.70
8.0.30.0070.01317.25
8.0.20.0130.00617.22
8.0.10.0000.00716.98
8.0.00.0080.01016.62
7.4.330.0000.00612.93
7.4.320.0030.00316.47
7.4.300.0000.00716.44
7.4.290.0000.00616.32
7.4.280.0040.00416.44
7.4.270.0030.00316.34
7.4.260.0000.00513.19
7.4.250.0050.00316.44
7.4.240.0000.00716.54
7.4.230.0000.00716.63
7.4.220.0070.01116.33
7.4.210.0070.00516.45
7.4.200.0000.00716.32
7.4.190.0080.00016.59
7.4.160.0080.00816.54
7.4.150.0180.00316.64
7.4.140.0100.01017.86
7.4.130.0160.01716.51
7.4.120.0070.01016.64
7.4.110.0080.01116.34
7.4.100.0140.00316.54
7.4.90.0070.01716.64
7.4.80.0100.00716.18
7.4.70.0090.00916.38
7.4.60.0060.01016.59
7.4.50.0030.00316.26
7.4.40.0060.00916.28
7.4.30.0030.01716.52
7.4.00.0100.00715.02
7.3.330.0030.00313.29
7.3.320.0000.00613.25
7.3.310.0060.00016.11
7.3.300.0030.00516.16
7.3.290.0060.00816.28
7.3.280.0160.00616.27
7.3.270.0110.00716.44
7.3.260.0110.00816.33
7.3.240.0090.00616.29
7.3.230.0100.00616.42
7.3.210.0130.00316.24
7.3.200.0090.01219.39
7.3.190.0170.00016.55
7.3.180.0060.01016.39
7.3.170.0170.00016.55
7.3.160.0130.00316.48
7.3.120.0040.01414.83
7.2.330.0120.00316.67
7.2.320.0060.01116.51
7.2.310.0080.01216.61
7.2.300.0100.00616.40
7.2.290.0090.01016.73
7.2.60.0060.00616.64
7.2.50.0090.00616.86
7.1.200.0090.00615.73
7.1.70.0030.01017.07
7.1.60.0120.00919.25
7.1.50.0080.00816.57
7.1.00.0030.04722.40
7.0.200.0220.00416.49
7.0.140.0030.07021.97
7.0.60.0030.05720.06
7.0.50.0030.08717.91
7.0.40.0430.06720.05
7.0.30.0370.07720.27
7.0.20.0270.08320.16
7.0.10.0370.07020.27
7.0.00.0230.08320.18
5.6.280.0030.07320.89
5.6.210.0030.07020.76
5.6.200.0070.08318.19
5.6.190.0230.05720.49
5.6.180.0270.07720.49
5.6.170.0330.05720.68
5.6.160.0300.05720.60
5.6.150.0370.06720.18
5.6.140.0430.07320.18
5.6.130.0270.04720.46
5.6.120.0400.03020.50
5.6.110.0330.08720.22
5.6.100.0230.05320.43
5.6.90.0300.04720.49
5.6.80.0330.07019.76
5.6.70.0300.08019.55
5.6.60.0300.07019.82
5.6.50.0270.08019.80
5.6.40.0430.05719.64
5.6.30.0330.05719.73
5.6.20.0230.04019.68
5.6.10.0330.06319.53
5.6.00.0300.07719.80
5.5.350.0000.05320.43
5.5.340.0100.06317.99
5.5.330.0300.08020.47
5.5.320.0330.07720.30
5.5.310.0330.04020.34
5.5.300.0370.03320.03
5.5.290.0230.08720.03
5.5.280.0270.04320.17
5.5.270.0330.07720.23
5.5.260.0300.04020.23
5.5.250.0270.06020.02
5.5.240.0400.07319.53
5.5.230.0300.05319.70
5.5.220.0270.07019.41
5.5.210.0400.07019.62
5.5.200.0370.07019.56
5.5.190.0270.06719.65
5.5.180.0330.07019.62
5.5.160.0370.07019.65
5.5.150.0330.07319.66
5.5.140.0370.05319.48
5.5.130.0300.06719.52
5.5.120.0330.04719.38
5.5.110.0230.05719.58
5.5.100.0330.06719.40
5.5.90.0370.06719.55
5.5.80.0300.06719.42
5.5.70.0300.07719.57
5.5.60.0270.05319.44
5.5.50.0200.04319.54
5.5.40.0230.06319.47
5.5.30.0230.03319.52
5.5.20.0130.04019.32
5.5.10.0100.04319.32
5.5.00.0100.04719.42
5.4.450.0370.07719.33
5.4.440.0330.05319.18
5.4.430.0300.07319.53
5.4.420.0200.05019.57
5.4.410.0330.07319.08
5.4.400.0330.07719.25
5.4.390.0330.07719.00
5.4.380.0300.05318.88
5.4.370.0330.05718.86
5.4.360.0330.03319.15
5.4.350.0270.07319.25
5.4.340.0270.04018.92
5.4.320.0300.07019.10
5.4.310.0230.04718.86
5.4.300.0330.07019.20
5.4.290.0370.06018.93
5.4.280.0300.06319.15
5.4.270.0270.04719.25
5.4.260.0270.03719.14
5.4.250.0330.06019.15
5.4.240.0330.06719.14
5.4.230.0230.04318.85
5.4.220.0330.06719.07
5.4.210.0270.03719.15
5.4.200.0300.04019.24
5.4.190.0130.03719.24
5.4.180.0130.03718.99
5.4.170.0130.03718.85
5.4.160.0130.03719.14
5.4.150.0070.04319.22
5.4.140.0130.03316.41
5.4.130.0100.03716.39
5.4.120.0130.03316.41
5.4.110.0100.03716.40
5.4.100.0100.03716.39
5.4.90.0170.03016.67
5.4.80.0130.03316.46
5.4.70.0200.03316.30
5.4.60.0100.03716.38
5.4.50.0100.03716.37
5.4.40.0100.03716.28
5.4.30.0100.03716.28
5.4.20.0230.02316.45
5.4.10.0130.03316.25
5.4.00.0200.02715.75
5.3.290.0300.07714.67
5.3.280.0330.05714.58
5.3.270.0100.04014.66
5.3.260.0130.03714.65
5.3.250.0130.03314.53
5.3.240.0130.03714.65
5.3.230.0100.04014.61
5.3.220.0170.03014.46
5.3.210.0130.03714.58
5.3.200.0100.03714.58
5.3.190.0170.03314.64
5.3.180.0130.03314.72
5.3.170.0100.04714.60
5.3.160.0200.03714.63
5.3.150.0100.04314.59
5.3.140.0130.04014.45
5.3.130.0200.03714.56
5.3.120.0130.03714.71
5.3.110.0170.03714.56
5.3.100.0130.03314.04
5.3.90.0130.03713.91
5.3.80.0200.02714.07
5.3.70.0070.04014.09
5.3.60.0070.04013.93
5.3.50.0130.05313.98
5.3.40.0100.03713.95
5.3.30.0200.03313.82
5.3.20.0100.03713.68
5.3.10.0130.03313.71
5.3.00.0170.06313.58
5.2.170.0100.03012.38
5.2.160.0100.02712.38
5.2.150.0200.02012.38
5.2.140.0070.03312.38
5.2.130.0100.03012.38
5.2.120.0100.03312.38
5.2.110.0170.06012.38
5.2.100.0170.04312.38
5.2.90.0130.04012.38
5.2.80.0300.06012.38
5.2.70.0130.05712.38
5.2.60.0170.05712.38
5.2.50.0170.06012.38
5.2.40.0130.06012.38
5.2.30.0200.05712.38
5.2.20.0270.04312.38
5.2.10.0200.03012.38
5.2.00.0230.05312.38
5.1.60.0200.03712.38
5.1.50.0230.04312.38
5.1.40.0170.04312.38
5.1.30.0100.04712.38
5.1.20.0130.03312.38
5.1.10.0130.05312.38
5.1.00.0130.03712.38
5.0.50.0100.02012.38
5.0.40.0100.01712.38
5.0.30.0100.06012.38
5.0.20.0070.04012.38
5.0.10.0130.03712.38
5.0.00.0000.03312.38
4.4.90.0100.03012.38
4.4.80.0100.03312.38
4.4.70.0070.03312.38
4.4.60.0170.01712.38
4.4.50.0100.02312.38
4.4.40.0070.05012.38
4.4.30.0070.02312.38
4.4.20.0030.02012.38
4.4.10.0070.02012.38
4.4.00.0030.02712.38
4.3.110.0030.01712.38
4.3.100.0030.03012.38
4.3.90.0070.03712.38
4.3.80.0070.03712.38
4.3.70.0030.01712.38
4.3.60.0130.01012.38
4.3.50.0030.02012.38
4.3.40.0030.02312.38
4.3.30.0030.03012.38
4.3.20.0030.02712.38
4.3.10.0000.02712.38
4.3.00.0030.03712.38

preferences:
36.35 ms | 400 KiB | 5 Q