3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function __construct(){ throw new Exception(); } } try{ $a = new A(); }catch(Exception $e){ echo "caugth the error\n"; } var_dump(isset($a)); // $a is not even set

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.5.30.0100.00717.30
8.5.20.0090.00720.27
8.5.10.0050.01220.27
8.5.00.0110.01019.86
8.4.180.0120.01019.64
8.4.170.0100.01220.41
8.4.160.0140.00923.87
8.4.150.0090.00516.89
8.4.140.0150.00617.46
8.4.130.0120.00818.89
8.4.120.0140.00624.11
8.4.110.0140.00622.43
8.4.100.0080.01217.83
8.4.90.0110.00717.80
8.4.80.0130.00418.21
8.4.70.0040.00418.09
8.4.60.0060.00218.86
8.4.50.0130.00917.73
8.4.40.0040.01217.99
8.4.30.0100.01017.71
8.4.20.0130.00017.62
8.4.10.0130.00617.63
8.3.300.0130.00720.80
8.3.290.0080.01120.70
8.3.280.0120.00718.37
8.3.270.0120.00716.40
8.3.260.0110.00816.50
8.3.250.0110.00819.05
8.3.240.0100.00817.10
8.3.230.0130.00716.82
8.3.220.0110.00817.29
8.3.210.0050.00216.65
8.3.200.0060.00216.66
8.3.190.0040.00417.20
8.3.180.0090.00916.65
8.3.170.0090.00917.00
8.3.160.0180.00016.69
8.3.150.0150.00319.04
8.3.140.0120.00616.80
8.3.130.0030.00616.54
8.3.120.0150.00420.95
8.3.110.0090.00020.94
8.3.100.0040.00424.06
8.3.90.0150.00326.77
8.3.80.0110.00017.97
8.3.70.0070.01016.38
8.3.60.0110.00316.63
8.3.50.0080.01121.09
8.3.40.0140.00018.71
8.3.30.0070.00718.80
8.3.20.0040.00420.13
8.3.10.0000.00721.94
8.3.00.0070.00023.70
8.2.300.0150.00522.08
8.2.290.0080.00820.38
8.2.280.0080.00618.38
8.2.270.0100.00719.16
8.2.260.0080.00018.95
8.2.250.0000.00816.68
8.2.240.0110.00017.24
8.2.230.0110.00022.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0040.00418.54
8.2.190.0150.00016.75
8.2.180.0100.00718.29
8.2.170.0140.00322.96
8.2.160.0030.01320.28
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00520.87
8.2.120.0080.00026.35
8.2.110.0030.00719.21
8.2.100.0060.00618.03
8.2.90.0050.00319.09
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0030.00517.80
8.2.50.0000.00818.09
8.2.40.0040.00422.31
8.2.30.0040.00419.42
8.2.20.0070.00017.55
8.2.10.0040.00417.96
8.2.00.0000.00717.95
8.1.340.0130.00917.64
8.1.330.0090.00921.83
8.1.320.0130.00318.22
8.1.310.0070.00716.61
8.1.300.0060.01317.92
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0150.00421.79
8.1.260.0090.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00619.02
8.1.230.0070.00319.00
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0030.00518.66
8.1.160.0040.00420.80
8.1.150.0070.00020.54
8.1.140.0040.00419.49
8.1.130.0030.00317.64
8.1.120.0020.00517.38
8.1.110.0000.00717.50
8.1.100.0040.00417.43
8.1.90.0000.00717.42
8.1.80.0080.00017.46
8.1.70.0000.00717.48
8.1.60.0040.00417.61
8.1.50.0000.00817.53
8.1.40.0060.00617.55
8.1.30.0050.00317.49
8.1.20.0030.00517.58
8.1.10.0040.00417.56
8.1.00.0000.00717.54
8.0.300.0060.00318.77
8.0.290.0000.00716.88
8.0.280.0000.00818.38
8.0.270.0030.00317.32
8.0.260.0030.00517.10
8.0.250.0030.00316.99
8.0.240.0000.00816.94
8.0.230.0050.00316.84
8.0.220.0070.00016.88
8.0.210.0030.00316.89
8.0.200.0030.00316.96
8.0.190.0060.00616.98
8.0.180.0030.00316.87
8.0.170.0050.00217.00
8.0.160.0070.00016.97
8.0.150.0000.00716.88
8.0.140.0070.00016.88
8.0.130.0070.00013.30
8.0.120.0060.00316.80
8.0.110.0070.00016.97
8.0.100.0070.00016.92
8.0.90.0040.00417.01
8.0.80.0070.00716.97
8.0.70.0000.00816.91
8.0.60.0070.00016.75
8.0.50.0000.00716.91
8.0.30.0100.00816.94
8.0.20.0070.01217.40
8.0.10.0040.00416.96
8.0.00.0100.00816.62
7.4.330.0000.00516.73
7.4.320.0030.00316.59
7.4.300.0030.00616.59
7.4.290.0040.00416.39
7.4.280.0040.00416.39
7.4.270.0000.00716.50
7.4.260.0040.00416.52
7.4.250.0000.00816.37
7.4.240.0000.00716.50
7.4.230.0030.00316.61
7.4.220.0000.02416.54
7.4.210.0110.00616.56
7.4.200.0070.00016.43
7.4.160.0160.00016.45
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0140.01116.47
7.4.120.0120.00816.59
7.4.110.0140.00316.59
7.4.100.0120.00616.38
7.4.90.0090.00916.47
7.4.80.0090.01519.39
7.4.70.0030.01616.34
7.4.60.0100.00716.41
7.4.50.0110.00316.41
7.4.40.0070.01016.41
7.4.30.0110.01116.35
7.4.00.0120.00714.89
7.3.330.0000.00613.43
7.3.320.0050.00013.22
7.3.310.0000.00716.36
7.3.300.0000.00616.25
7.3.290.0030.00316.25
7.3.280.0120.00716.38
7.3.270.0140.00417.40
7.3.260.0100.00716.38
7.3.250.0060.01016.43
7.3.240.0100.00816.42
7.3.230.0090.00616.43
7.3.210.0100.01316.35
7.3.200.0100.01019.39
7.3.190.0080.00816.58
7.3.180.0100.00616.41
7.3.170.0100.01016.29
7.3.160.0090.00616.45
7.3.120.0090.00914.72
7.3.110.0030.01314.94
7.3.100.0100.00714.84
7.3.90.0060.01314.86
7.3.80.0000.01414.82
7.3.70.0070.00714.84
7.3.60.0070.01014.81
7.3.50.0140.00314.81
7.3.40.0040.01114.60
7.3.30.0030.00914.66
7.3.20.0030.00616.34
7.3.10.0090.00516.41
7.3.00.0110.00416.36
7.2.330.0120.00616.73
7.2.320.0070.01016.64
7.2.310.0130.00316.46
7.2.300.0070.01116.78
7.2.290.0100.00616.42
7.2.250.0070.00714.93
7.2.240.0100.01015.13
7.2.230.0000.01714.52
7.2.220.0060.01315.23
7.2.210.0030.00614.92
7.2.200.0100.00315.06
7.2.190.0030.00615.01
7.2.180.0060.00914.96
7.2.170.0070.00715.00
7.2.130.0090.01016.58
7.2.120.0090.00616.45
7.2.110.0130.00016.51
7.2.100.0060.00816.36
7.2.90.0070.00916.80
7.2.80.0130.00716.45
7.2.70.0080.01116.45
7.2.60.0060.01016.43
7.2.50.0160.00916.60
7.2.40.0150.00516.79
7.2.30.0030.01316.30
7.2.20.0070.01216.73
7.2.10.0110.00416.55
7.2.00.0170.00318.05
7.1.330.0040.00815.65
7.1.320.0040.00815.73
7.1.310.0100.00315.75
7.1.300.0040.00815.74
7.1.290.0120.00315.75
7.1.280.0100.00015.75
7.1.270.0090.00615.79
7.1.260.0030.01315.75
7.1.250.0090.00615.59
7.1.100.0080.00318.03
7.1.70.0000.00716.93
7.1.60.0120.00919.40
7.1.50.0120.01216.89
7.1.00.0030.07322.30
7.0.200.0030.00616.53
7.0.100.0100.07319.88
7.0.90.0270.07719.86
7.0.80.0170.06719.88
7.0.70.0100.07319.96
7.0.60.0500.07319.84
7.0.50.0200.09020.28
7.0.40.0100.07720.04
7.0.30.0100.08719.99
7.0.20.0070.08719.91
7.0.10.0070.08020.04
7.0.00.0100.05019.98
5.6.280.0030.03021.07
5.6.250.0000.08320.57
5.6.240.0100.08020.59
5.6.230.0100.06720.64
5.6.220.0000.08720.54
5.6.210.0130.07320.41
5.6.200.0030.08021.05
5.6.190.0070.08720.99
5.6.180.0070.08021.14
5.6.170.0070.05020.99
5.6.160.0030.04320.98
5.6.150.0130.07021.14
5.6.140.0100.08321.05
5.6.130.0070.08021.13
5.6.120.0030.08021.04
5.6.110.0100.08020.90
5.6.100.0130.07320.96
5.6.90.0030.04720.96
5.6.80.0130.07320.38
5.6.70.0200.06320.29
5.6.60.0000.08720.28
5.6.50.0000.07720.35
5.6.40.0070.05320.34
5.6.30.0130.05020.30
5.6.20.0000.07320.31
5.6.10.0100.07720.43
5.6.00.0100.08020.32
5.5.380.0170.07020.30
5.5.370.0130.07320.45
5.5.360.0070.08720.29
5.5.350.0070.08720.32
5.5.340.0100.06720.79
5.5.330.0070.08320.86
5.5.320.0070.09720.85
5.5.310.0030.07720.72
5.5.300.0130.07320.88
5.5.290.0100.08020.69
5.5.280.0170.06720.82
5.5.270.0170.05720.85
5.5.260.0100.07320.73
5.5.250.0030.05020.59
5.5.240.0030.04320.23
5.5.230.0070.07720.25
5.5.220.0030.07319.97
5.5.210.0070.07020.13
5.5.200.0200.06720.20
5.5.190.0070.07320.24
5.5.180.0130.07320.14
5.5.160.0070.07720.23
5.5.150.0200.05020.04
5.5.140.0130.04020.08
5.5.130.0030.07319.95
5.5.120.0030.08019.95
5.5.110.0000.07020.08
5.5.100.0100.07319.94
5.5.90.0000.08320.02
5.5.80.0000.08320.09
5.5.70.0100.07720.02
5.5.60.0070.07319.92
5.5.50.0100.07319.99
5.5.40.0130.06719.98
5.5.30.0170.05319.98
5.5.20.0100.06320.01
5.5.10.0030.08019.98
5.5.00.0130.07020.09

preferences:
50.33 ms | 1824 KiB | 5 Q