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; var_dump($test);

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.0140.00716.50
8.3.50.0100.01221.12
8.3.40.0070.01118.70
8.3.30.0160.00318.57
8.3.20.0030.00920.25
8.3.10.0080.00021.73
8.3.00.0000.00823.70
8.2.180.0110.00716.38
8.2.170.0120.00322.96
8.2.160.0110.00320.27
8.2.150.0080.00024.18
8.2.140.0100.00024.66
8.2.130.0080.00019.61
8.2.120.0040.01126.35
8.2.110.0050.00521.00
8.2.100.0080.00417.80
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0040.00417.49
8.2.60.0110.00018.04
8.2.50.0060.00318.07
8.2.40.0030.00620.59
8.2.30.0040.00419.40
8.2.20.0040.00417.55
8.2.10.0050.00218.00
8.2.00.0030.00617.97
8.1.280.0070.01025.92
8.1.270.0040.01123.96
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00422.48
8.1.230.0110.00018.97
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0030.00518.96
8.1.180.0060.00318.10
8.1.170.0000.00918.50
8.1.160.0040.00420.75
8.1.150.0020.00518.78
8.1.140.0080.00019.52
8.1.130.0040.00417.64
8.1.120.0000.00717.46
8.1.110.0000.00817.33
8.1.100.0040.00417.29
8.1.90.0070.00017.32
8.1.80.0040.00417.41
8.1.70.0070.00017.30
8.1.60.0040.00417.51
8.1.50.0030.00517.41
8.1.40.0000.00717.37
8.1.30.0090.00017.50
8.1.20.0050.00317.54
8.1.10.0000.00717.37
8.1.00.0000.00817.33
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.33
8.0.270.0000.00717.09
8.0.260.0000.00717.09
8.0.250.0000.00816.92
8.0.240.0040.00416.84
8.0.230.0030.00316.85
8.0.220.0050.00316.87
8.0.210.0000.00716.80
8.0.200.0030.00316.89
8.0.190.0070.00016.81
8.0.180.0000.00716.85
8.0.170.0030.00516.78
8.0.160.0050.00316.75
8.0.150.0000.00716.79
8.0.140.0040.00416.83
8.0.130.0000.00513.21
8.0.120.0050.00316.85
8.0.110.0000.00716.89
8.0.100.0000.00716.64
8.0.90.0080.00016.71
8.0.80.0040.01116.80
8.0.70.0000.00716.82
8.0.60.0070.00016.63
8.0.50.0000.00716.78
8.0.30.0130.00516.84
8.0.20.0120.00717.40
8.0.10.0040.00416.94
8.0.00.0080.00916.74
7.4.330.0000.00516.85
7.4.320.0060.00016.43
7.4.300.0000.00816.57
7.4.290.0000.00716.63
7.4.280.0040.00416.63
7.4.270.0040.00416.49
7.4.260.0030.00316.48
7.4.250.0070.00016.55
7.4.240.0070.00016.48
7.4.230.0070.00016.62
7.4.220.0130.01316.60
7.4.210.0070.01016.47
7.4.200.0030.00316.50
7.4.160.0040.01516.39
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0130.01016.46
7.4.120.0110.00816.43
7.4.110.0140.00616.34
7.4.100.0170.00616.29
7.4.90.0050.01216.27
7.4.80.0080.01219.39
7.4.70.0130.01016.61
7.4.60.0140.00416.36
7.4.50.0100.00316.59
7.4.40.0090.00916.37
7.4.30.0100.00716.53
7.4.00.0080.00815.18
7.3.330.0000.00513.37
7.3.320.0000.00613.23
7.3.310.0080.00016.17
7.3.300.0000.00716.35
7.3.290.0040.00416.22
7.3.280.0080.01116.27
7.3.270.0060.01217.40
7.3.260.0100.00716.39
7.3.250.0080.00916.29
7.3.240.0100.00916.22
7.3.230.0100.00716.39
7.3.210.0180.00616.32
7.3.200.0120.00919.39
7.3.190.0090.00916.39
7.3.180.0070.01016.34
7.3.170.0150.00616.57
7.3.160.0060.00916.13
7.3.10.0030.01016.70
7.3.00.0100.00716.70
7.2.330.0110.00616.70
7.2.320.0120.00616.46
7.2.310.0000.01816.45
7.2.300.0060.01016.62
7.2.290.0060.01016.71
7.2.130.0030.01416.76
7.2.120.0090.00016.93
7.2.110.0180.00516.44
7.2.100.0100.00016.48
7.2.90.0000.01416.75
7.2.80.0040.00817.06
7.2.70.0000.00816.93
7.2.60.0020.01216.94
7.2.50.0070.00316.79
7.2.40.0000.01516.88
7.2.30.0150.00416.97
7.2.20.0060.00816.87
7.2.10.0070.01016.59
7.2.00.0050.01018.09
7.1.250.0060.00615.80
7.1.200.0030.01215.87
7.1.100.0170.00018.20
7.1.70.0040.00417.24
7.1.60.0130.00919.30
7.1.50.0090.01217.05
7.1.00.0030.07722.45
7.0.200.0040.00716.73
7.0.60.0300.07321.66
7.0.50.0070.08717.73
7.0.40.0030.05020.37
7.0.30.0330.08020.25
7.0.20.0370.07720.09
7.0.10.0070.06020.21
7.0.00.0030.06320.07
5.6.280.0000.04720.82
5.6.210.0000.08720.70
5.6.200.0070.08718.25
5.6.190.0030.04320.52
5.6.180.0300.05020.63
5.6.170.0230.06720.47
5.6.160.0070.04720.51
5.6.150.0070.06718.17
5.6.140.0170.07018.19
5.6.130.0130.08018.28
5.6.120.0100.08021.02
5.6.110.0000.05321.05
5.6.100.0000.08320.98
5.6.90.0030.04721.01
5.6.80.0130.05720.51
5.5.350.0230.06320.37
5.5.340.0070.06017.96
5.5.330.0030.04720.26
5.5.320.0330.06020.34
5.5.310.0330.07320.23
5.5.300.0030.08317.93
5.5.290.0000.08317.90
5.5.280.0030.08320.95
5.5.270.0100.05720.77
5.5.260.0100.05320.84
5.5.250.0070.03720.67
5.5.240.0100.03320.14

preferences:
90.03 ms | 401 KiB | 5 Q