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); $test->buuu = 'asdsada'; 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.63
8.3.50.0210.00016.25
8.3.40.0000.01518.96
8.3.30.0110.00418.84
8.3.20.0090.00619.97
8.3.10.0000.00821.85
8.3.00.0180.00023.52
8.2.180.0120.00618.43
8.2.170.0000.01522.96
8.2.160.0110.00320.24
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00419.82
8.2.120.0000.00826.35
8.2.110.0060.00320.39
8.2.100.0080.00317.55
8.2.90.0000.00819.23
8.2.80.0060.00317.97
8.2.70.0030.00517.63
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0050.00520.60
8.2.30.0000.00719.24
8.2.20.0040.00417.57
8.2.10.0080.00017.93
8.2.00.0000.00718.04
8.1.270.0070.00723.84
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0070.00423.84
8.1.230.0100.00320.88
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0050.00617.23
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0040.00418.51
8.1.160.0030.00520.75
8.1.150.0040.00418.88
8.1.140.0000.00719.58
8.1.130.0050.00217.77
8.1.120.0040.00417.49
8.1.110.0000.00717.44
8.1.100.0080.00017.52
8.1.90.0050.00217.32
8.1.80.0040.00417.46
8.1.70.0030.00317.39
8.1.60.0000.00817.48
8.1.50.0060.00317.44
8.1.40.0080.00017.40
8.1.30.0040.00417.61
8.1.20.0040.00417.64
8.1.10.0040.00417.48
8.1.00.0070.00017.51
8.0.300.0030.00518.77
8.0.290.0060.00316.75
8.0.280.0030.00318.39
8.0.270.0040.00417.11
8.0.260.0030.00317.30
8.0.250.0030.00316.85
8.0.240.0050.00216.94
8.0.230.0000.00716.94
8.0.220.0050.00316.80
8.0.210.0040.00416.86
8.0.200.0030.00316.83
8.0.190.0040.00417.01
8.0.180.0040.00416.84
8.0.170.0040.00416.79
8.0.160.0040.00416.96
8.0.150.0000.00716.91
8.0.140.0030.00316.90
8.0.130.0060.00013.34
8.0.120.0040.00416.82
8.0.110.0000.00716.98
8.0.100.0040.00416.84
8.0.90.0030.00516.77
8.0.80.0120.00316.91
8.0.70.0070.00016.95
8.0.60.0000.00717.06
8.0.50.0040.00416.80
8.0.30.0090.01117.10
8.0.20.0110.00817.40
8.0.10.0040.00416.87
8.0.00.0130.00416.79
7.4.330.0000.00516.69
7.4.320.0060.00016.65
7.4.300.0050.00316.54
7.4.290.0000.00816.49
7.4.280.0020.00516.54
7.4.270.0000.00716.56
7.4.260.0070.00016.53
7.4.250.0070.00016.45
7.4.240.0020.00516.60
7.4.230.0030.00316.36
7.4.220.0130.00616.46
7.4.210.0070.01116.61
7.4.200.0070.00016.60
7.4.160.0160.00016.62
7.4.150.0030.01517.40
7.4.140.0130.00617.86
7.4.130.0080.01316.57
7.4.120.0080.00816.52
7.4.110.0100.00616.73
7.4.100.0090.00916.48
7.4.90.0130.00316.54
7.4.80.0070.01119.39
7.4.70.0060.01216.48
7.4.60.0070.01016.44
7.4.50.0080.00316.45
7.4.40.0180.00616.41
7.4.30.0100.00716.48
7.4.00.0080.01014.95
7.3.330.0000.00513.16
7.3.320.0000.00513.37
7.3.310.0000.00816.37
7.3.300.0070.00016.23
7.3.290.0030.00316.34
7.3.280.0090.00916.33
7.3.270.0140.00317.40
7.3.260.0060.01216.69
7.3.250.0100.00816.46
7.3.240.0080.01316.54
7.3.230.0090.00916.39
7.3.210.0120.00616.41
7.3.200.0120.01119.39
7.3.190.0160.00016.66
7.3.180.0180.00016.45
7.3.170.0120.00416.30
7.3.160.0110.00716.54
7.3.120.0070.01014.79
7.3.110.0070.01114.68
7.3.100.0060.00914.74
7.3.90.0030.00614.87
7.3.80.0040.01114.76
7.3.70.0080.00815.02
7.3.60.0090.00015.00
7.3.50.0040.01114.91
7.3.40.0090.00614.94
7.3.30.0090.00614.92
7.3.20.0070.00716.70
7.3.10.0060.00816.75
7.3.00.0040.00616.63
7.2.330.0080.00816.46
7.2.320.0100.01316.68
7.2.310.0120.01116.69
7.2.300.0120.00416.54
7.2.290.0110.01116.60
7.2.250.0070.01315.14
7.2.240.0000.02014.92
7.2.230.0000.02014.85
7.2.220.0070.00415.19
7.2.210.0070.00415.24
7.2.200.0100.00614.95
7.2.190.0030.01214.96
7.2.180.0060.00914.75
7.2.170.0060.00915.10
7.2.130.0090.00316.97
7.2.120.0120.00016.72
7.2.110.0130.01016.86
7.2.100.0070.01016.83
7.2.90.0070.01016.93
7.2.80.0000.01416.95
7.2.70.0100.00316.99
7.2.60.0060.00816.66
7.2.50.0090.00016.74
7.2.40.0120.00017.04
7.2.30.0040.00416.77
7.2.20.0080.00416.68
7.2.10.0030.01016.71
7.2.00.0020.01117.93
7.1.330.0040.01115.86
7.1.320.0040.00716.07
7.1.310.0070.00715.86
7.1.300.0030.00716.00
7.1.290.0100.00615.85
7.1.280.0040.01115.75
7.1.270.0110.00415.84
7.1.260.0000.01515.79
7.1.250.0060.00615.68
7.1.200.0060.00615.52
7.1.100.0120.00318.23
7.1.70.0000.00816.93
7.1.60.0070.01719.30
7.1.50.0040.00717.07
7.1.00.0030.07722.48
7.0.200.0000.00916.70
7.0.60.0200.08321.76
7.0.50.0100.08017.69
7.0.40.0070.08720.09
7.0.30.0330.06320.08
7.0.20.0430.07020.15
7.0.10.0100.07320.16
7.0.00.0130.06020.30
5.6.280.0000.04020.93
5.6.210.0030.08020.55
5.6.200.0030.06718.20
5.6.190.0030.04720.63
5.6.180.0570.06720.64
5.6.170.0370.07020.45
5.6.160.0070.06020.56
5.6.150.0030.08718.14
5.6.140.0070.04018.23
5.6.130.0030.04318.15
5.6.120.0230.05321.15
5.6.110.0100.07721.02
5.6.100.0030.04021.11
5.6.90.0000.07321.11
5.6.80.0100.04720.35
5.5.350.0070.09320.37
5.5.340.0070.07017.99
5.5.330.0030.06720.38
5.5.320.0630.06320.36
5.5.310.0270.03720.23
5.5.300.0070.07718.04
5.5.290.0200.06718.02
5.5.280.0070.03720.79
5.5.270.0100.04720.80
5.5.260.0070.06320.90
5.5.250.0070.07720.70
5.5.240.0200.04720.20

preferences:
62.36 ms | 400 KiB | 5 Q