3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AbilityScore { public $value; public function __construct(int $value) { if ($value < 1) throw new AbilityScoreTooLowException('Ability Score should be at least 1'); $this->value = $value; } public function __set($field, $value) { throw new Exception('Not here mate!'); } } $test = new AbilityScore(10); $test->value = 11; $test->buuu = 'asdsada';

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.60.0120.00916.63
8.3.50.0130.01021.20
8.3.40.0160.00018.72
8.3.30.0140.00018.83
8.3.20.0040.00420.30
8.3.10.0080.00021.98
8.3.00.0080.00023.63
8.2.180.0040.01518.50
8.2.170.0090.00622.96
8.2.160.0000.01620.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00419.64
8.2.120.0090.00926.35
8.2.110.0030.00720.88
8.2.100.0000.01117.92
8.2.90.0040.00419.08
8.2.80.0090.00017.97
8.2.70.0040.00417.48
8.2.60.0090.00317.55
8.2.50.0050.00318.07
8.2.40.0030.00722.40
8.2.30.0040.00419.25
8.2.20.0000.00817.68
8.2.10.0000.00717.93
8.2.00.0000.00717.92
8.1.280.0100.00725.92
8.1.270.0130.00623.79
8.1.260.0040.00428.09
8.1.250.0100.00328.09
8.1.240.0060.00617.48
8.1.230.0110.00019.07
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00918.51
8.1.160.0000.00720.81
8.1.150.0040.00418.82
8.1.140.0000.00719.52
8.1.130.0030.00317.69
8.1.120.0040.00417.46
8.1.110.0000.00717.49
8.1.100.0000.00717.36
8.1.90.0030.00517.38
8.1.80.0080.00017.41
8.1.70.0070.00017.46
8.1.60.0000.00817.41
8.1.50.0060.00317.51
8.1.40.0050.00317.55
8.1.30.0080.00017.66
8.1.20.0080.00017.57
8.1.10.0030.00517.58
8.1.00.0000.00717.57
8.0.300.0040.00418.77
8.0.290.0060.00316.58
8.0.280.0080.00018.39
8.0.270.0050.00317.07
8.0.260.0000.00617.05
8.0.250.0030.00317.02
8.0.240.0060.00316.89
8.0.230.0030.00316.91
8.0.220.0030.00616.85
8.0.210.0040.00416.82
8.0.200.0070.00016.86
8.0.190.0060.00316.96
8.0.180.0040.00416.80
8.0.170.0030.00516.80
8.0.160.0080.00016.87
8.0.150.0030.00416.94
8.0.140.0040.00416.93
8.0.130.0080.00013.41
8.0.120.0040.00416.95
8.0.110.0070.00016.93
8.0.100.0050.00216.93
8.0.90.0050.00216.86
8.0.80.0080.00616.93
8.0.70.0030.00516.82
8.0.60.0030.00416.79
8.0.50.0000.00716.81
8.0.30.0070.01017.24
8.0.20.0100.00917.40
8.0.10.0030.00317.13
8.0.00.0080.01016.84
7.4.330.0030.00316.77
7.4.320.0000.00716.63
7.4.300.0040.00416.45
7.4.290.0000.00816.55
7.4.280.0040.00416.47
7.4.270.0070.00016.65
7.4.260.0030.00516.48
7.4.250.0040.00416.57
7.4.240.0040.00316.48
7.4.230.0000.00716.41
7.4.220.0060.01216.61
7.4.210.0100.00716.56
7.4.200.0040.00416.70
7.4.160.0070.01416.45
7.4.150.0070.01017.40
7.4.140.0100.00917.86
7.4.130.0100.00816.43
7.4.120.0110.00516.46
7.4.110.0100.01316.52
7.4.100.0110.00716.55
7.4.90.0100.01016.60
7.4.80.0110.00619.39
7.4.70.0070.01016.36
7.4.60.0070.01016.43
7.4.50.0020.01316.54
7.4.40.0100.00916.62
7.4.30.0070.01116.30
7.4.10.0110.00714.66
7.4.00.0050.01215.09
7.3.330.0000.00513.34
7.3.320.0060.00013.33
7.3.310.0050.00316.35
7.3.300.0000.00616.37
7.3.290.0070.00016.46
7.3.280.0070.00916.34
7.3.270.0070.01117.40
7.3.260.0000.01716.47
7.3.250.0120.00516.44
7.3.240.0070.01116.38
7.3.230.0100.00616.58
7.3.210.0100.00616.48
7.3.200.0110.00719.39
7.3.190.0130.00316.55
7.3.180.0100.00616.60
7.3.170.0110.00516.55
7.3.160.0090.00616.63
7.3.130.0080.01214.70
7.3.120.0030.01315.00
7.3.110.0080.00814.89
7.3.100.0030.01314.96
7.3.90.0120.00314.76
7.3.80.0030.00615.13
7.3.70.0030.00715.01
7.3.60.0060.00314.68
7.3.50.0090.00914.77
7.3.40.0030.01014.68
7.3.30.0120.00014.68
7.3.20.0080.00016.52
7.3.10.0030.00916.84
7.3.00.0000.00916.86
7.2.330.0070.01116.49
7.2.320.0070.01416.45
7.2.310.0110.01116.59
7.2.300.0130.00316.66
7.2.290.0030.01316.54
7.2.260.0120.00615.17
7.2.250.0060.01214.92
7.2.240.0030.00915.12
7.2.230.0000.01415.15
7.2.220.0070.00715.25
7.2.210.0030.01015.13
7.2.200.0070.00415.04
7.2.190.0130.00315.00
7.2.180.0030.01014.99
7.2.170.0030.01015.12
7.2.160.0030.01015.09
7.2.150.0040.00716.70
7.2.140.0040.01116.77
7.2.130.0040.00716.71
7.2.120.0060.00916.89
7.2.110.0070.00716.90
7.2.100.0060.00616.73
7.2.90.0040.01216.89
7.2.80.0030.01216.92
7.2.70.0040.01117.00
7.2.60.0070.00616.82
7.2.50.0110.00017.05
7.2.40.0060.00916.96
7.2.30.0030.01317.05
7.2.20.0060.01316.83
7.2.10.0060.00617.05
7.2.00.0050.00817.88
7.1.330.0090.00615.92
7.1.320.0080.00015.89
7.1.310.0070.00715.73
7.1.300.0070.00715.84
7.1.290.0040.00415.77
7.1.280.0070.00715.84
7.1.270.0030.00715.54
7.1.260.0030.00715.81
7.1.250.0000.01315.82
7.1.240.0050.00515.86
7.1.230.0030.00915.75
7.1.220.0040.01215.56
7.1.210.0060.00615.75
7.1.200.0120.00615.82
7.1.190.0070.01015.76
7.1.180.0040.01115.93
7.1.170.0100.00315.80
7.1.160.0070.00715.55
7.1.150.0000.01315.96
7.1.140.0110.00715.86
7.1.130.0030.00715.83
7.1.120.0030.00615.73
7.1.110.0080.00415.72
7.1.100.0050.00917.04
7.1.90.0060.00615.86
7.1.80.0070.00715.77
7.1.70.0060.00816.38
7.1.60.0070.01317.58
7.1.50.0030.01216.34
7.1.40.0000.01415.70
7.1.30.0030.00715.77
7.1.20.0040.01115.62
7.1.10.0060.01215.76
7.1.00.0030.04119.16
7.0.330.0070.00715.38
7.0.320.0070.00715.07
7.0.310.0000.01315.42
7.0.300.0030.01015.39
7.0.290.0100.00315.51
7.0.280.0090.00415.28
7.0.270.0000.01015.52
7.0.260.0030.00615.19
7.0.250.0000.01715.46
7.0.240.0040.01115.65
7.0.230.0030.01015.59
7.0.220.0070.00315.39
7.0.210.0060.00615.45
7.0.200.0060.00516.15
7.0.190.0060.00615.41
7.0.180.0030.01015.50
7.0.170.0130.00015.40
7.0.160.0040.00415.57
7.0.150.0110.00015.47
7.0.140.0040.01115.36
7.0.130.0030.01215.64
7.0.120.0000.01315.34
7.0.110.0000.01115.47
7.0.100.0060.00615.26
7.0.90.0060.00315.33
7.0.80.0030.00615.55
7.0.70.0080.00015.09
7.0.60.0070.03618.50
7.0.50.0020.03016.82
7.0.40.0090.04416.93
7.0.30.0170.04316.89
7.0.20.0200.03716.87
7.0.10.0140.04116.83
7.0.00.0050.03316.77
5.6.400.0110.00314.20
5.6.390.0000.01214.11
5.6.380.0120.00314.36
5.6.370.0060.00614.48
5.6.360.0080.00514.08
5.6.350.0000.01214.26
5.6.340.0070.00714.06
5.6.330.0040.00814.50
5.6.320.0070.00714.24
5.6.310.0070.00714.34
5.6.300.0030.01214.35
5.6.290.0060.00313.93
5.6.280.0050.02017.52
5.6.270.0040.01114.19
5.6.260.0070.00714.29
5.6.250.0060.00914.36
5.6.240.0130.00314.48
5.6.230.0000.01513.93
5.6.220.0040.01214.00
5.6.210.0070.03417.43
5.6.200.0070.02816.29
5.6.190.0070.04517.41
5.6.180.0250.02317.29
5.6.170.0130.03217.35
5.6.160.0060.04517.38
5.6.150.0060.04216.38
5.6.140.0030.04616.13
5.6.130.0080.04116.26
5.6.120.0070.02317.48
5.6.110.0050.04717.76
5.6.100.0090.04117.62
5.6.90.0080.02617.50
5.6.80.0060.03317.48
5.6.70.0070.00714.02
5.6.60.0040.00714.00
5.6.50.0070.00713.88
5.6.40.0060.00913.85
5.6.30.0030.00614.05
5.6.20.0060.00614.25
5.6.10.0000.01514.21
5.6.00.0070.00714.13
5.5.380.0030.01314.33
5.5.370.0060.00614.18
5.5.360.0030.00613.89
5.5.350.0100.04517.25
5.5.340.0080.04516.12
5.5.330.0120.03917.13
5.5.320.0290.02417.16
5.5.310.0200.02817.32
5.5.300.0030.03016.13
5.5.290.0030.02516.12
5.5.280.0050.02217.50
5.5.270.0020.03317.42
5.5.260.0080.04617.61
5.5.250.0080.02317.61
5.5.240.0080.02017.23
5.5.230.0090.00614.30
5.5.220.0090.00614.14
5.5.210.0120.00313.86
5.5.200.0060.00614.02
5.5.190.0060.00313.86
5.5.180.0030.01014.16
5.5.170.0040.01214.11
5.5.160.0000.01313.93
5.5.150.0070.01013.61
5.5.140.0080.00014.21
5.5.130.0030.01014.10
5.5.120.0060.00614.08
5.5.110.0040.00414.02
5.5.100.0000.01014.00
5.5.90.0030.01014.06
5.5.80.0040.01114.34
5.5.70.0030.01013.79
5.5.60.0030.00614.16
5.5.50.0040.00413.66
5.5.40.0040.00413.94
5.5.30.0030.01013.61
5.5.20.0070.00714.20
5.5.10.0000.00914.11
5.5.00.0080.00413.87

preferences:
62.85 ms | 401 KiB | 5 Q