3v4l.org

run code in 300+ PHP versions simultaneously
<?php $person = new class($controller) { public $age = 15, $height = 72, $weight = 200; public function __set($name, $value) { if (!property_exists($this, $name)) { throw new Exception("No such property: $name"); } $this->{$name} = $value; } public function __get($name) { if (!property_exists($this, $name)) { throw new Exception("No such property: $name"); } return $this->{$name}; } }; var_dump($person); var_dump($person->age); $person->age = 19; var_dump($person->age); var_dump($person->badProp); $person->badProp = 5;

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.0110.00816.88
8.3.50.0150.00322.07
8.3.40.0000.01518.82
8.3.30.0130.00318.97
8.3.20.0040.00420.31
8.3.10.0060.00323.66
8.3.00.0080.00019.79
8.2.180.0040.01116.75
8.2.170.0110.00422.96
8.2.160.0070.00720.33
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00417.75
8.2.110.0070.00422.27
8.2.100.0090.00318.04
8.2.90.0040.00419.10
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0050.00321.01
8.2.30.0000.00720.63
8.2.20.0080.00017.76
8.2.10.0050.00217.95
8.2.00.0080.00018.04
8.1.280.0160.00325.92
8.1.270.0110.00423.81
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0050.00522.51
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0070.00018.10
8.1.170.0000.00818.57
8.1.160.0040.00421.88
8.1.150.0040.00418.94
8.1.140.0080.00019.59
8.1.130.0030.00317.72
8.1.120.0000.00717.47
8.1.110.0000.00717.47
8.1.100.0040.00417.52
8.1.90.0000.00717.48
8.1.80.0040.00417.49
8.1.70.0040.00417.36
8.1.60.0040.00417.57
8.1.50.0030.00517.57
8.1.40.0050.00517.48
8.1.30.0050.00317.60
8.1.20.0040.00717.66
8.1.10.0040.00417.68
8.1.00.0050.00317.53
8.0.300.0000.00718.77
8.0.290.0000.00916.75
8.0.280.0040.00418.36
8.0.270.0000.00717.33
8.0.260.0000.00717.26
8.0.250.0030.00617.05
8.0.240.0000.00717.01
8.0.230.0070.00016.92
8.0.220.0030.00316.96
8.0.210.0000.00716.98
8.0.200.0070.00017.06
8.0.190.0030.00916.91
8.0.180.0040.00416.88
8.0.170.0080.00017.02
8.0.160.0060.00316.98
8.0.150.0070.00016.89
8.0.140.0000.00816.95
8.0.130.0060.00013.38
8.0.120.0030.00516.83
8.0.110.0040.00416.81
8.0.100.0050.00316.82
8.0.90.0000.00716.95
8.0.80.0110.01116.95
8.0.70.0070.00017.03
8.0.60.0040.00416.95
8.0.50.0000.00716.84
8.0.30.0070.01017.27
8.0.20.0120.00717.40
8.0.10.0040.00417.11
8.0.00.0060.01316.94
7.4.330.0060.00015.08
7.4.320.0070.00016.56
7.4.300.0030.00516.52
7.4.290.0040.00416.61
7.4.280.0040.00416.63
7.4.270.0000.00616.43
7.4.260.0030.00316.61
7.4.250.0040.00416.49
7.4.240.0060.00216.48
7.4.230.0030.00316.49
7.4.220.0130.01016.69
7.4.210.0150.00616.38
7.4.200.0000.00716.39
7.4.160.0060.01716.67
7.4.150.0070.01017.40
7.4.140.0130.01017.86
7.4.130.0120.00616.53
7.4.120.0060.01116.50
7.4.110.0130.01016.50
7.4.100.0090.01516.57
7.4.90.0110.00716.55
7.4.80.0080.00819.39
7.4.70.0120.00916.70
7.4.60.0110.01116.52
7.4.50.0040.00416.81
7.4.40.0000.01616.60
7.4.30.0060.01216.63
7.4.00.0070.01014.88
7.3.330.0060.00013.21
7.3.320.0030.00313.30
7.3.310.0050.00216.40
7.3.300.0000.00716.39
7.3.290.0080.00616.42
7.3.280.0070.00916.41
7.3.270.0040.01417.40
7.3.260.0120.00616.36
7.3.250.0120.00816.54
7.3.240.0110.01116.40
7.3.230.0160.00716.45
7.3.210.0110.00816.41
7.3.200.0060.01216.66
7.3.190.0110.00516.49
7.3.180.0060.00916.38
7.3.170.0120.00916.40
7.3.160.0040.01316.55
7.2.330.0070.01116.82
7.2.320.0130.00316.49
7.2.310.0110.00616.75
7.2.300.0160.00616.68
7.2.290.0130.00616.73
7.2.60.0090.00616.99
7.2.00.0090.01119.67
7.1.200.0130.00015.74
7.1.100.0030.01018.29
7.1.70.0030.00617.25
7.1.60.0100.01319.50
7.1.50.0000.01517.09
7.1.00.0030.07722.27
7.0.200.0040.00416.89
7.0.60.0070.07319.96
7.0.50.0070.08317.89
7.0.40.0030.04320.05
7.0.30.0300.03720.25
7.0.20.0230.04720.25
7.0.10.0070.05020.15
7.0.00.0100.04020.35
5.6.210.0070.08320.54
5.6.200.0070.10018.16
5.6.190.0100.08320.61
5.6.180.0300.07720.77
5.6.170.0370.05020.52
5.6.160.0070.08720.55
5.6.150.0100.07018.29
5.6.140.0030.07718.18
5.6.130.0030.08018.24
5.6.120.0070.05021.17
5.6.110.0100.07020.98
5.6.100.0100.09021.11
5.6.90.0170.07020.97
5.6.80.0070.05020.38
5.5.350.0000.07320.43
5.5.340.0100.05318.09
5.5.330.0030.05020.27
5.5.320.3730.03720.34
5.5.310.0230.04020.27
5.5.300.0030.07317.99
5.5.290.0000.09017.96
5.5.280.0070.08720.95
5.5.270.0000.08720.85
5.5.260.0100.08020.76
5.5.250.0070.08020.77
5.5.240.0000.03320.23
5.4.450.0770.07019.16
5.4.440.0770.06319.16
5.4.430.0670.05719.16
5.4.420.0800.06319.45
5.4.410.0730.07319.19
5.4.400.0570.05719.29
5.4.390.0770.05719.29
5.4.380.0670.06019.30
5.4.370.0770.05719.00
5.4.360.0730.05019.28
5.4.350.0700.05318.95
5.4.340.0700.05019.27
5.4.320.0700.06319.37
5.4.310.0700.05319.13
5.4.300.0900.06319.12
5.4.290.0670.06718.99
5.4.280.0530.06018.84
5.4.270.0770.06719.11
5.4.260.0700.06019.27
5.4.250.0800.05719.25
5.4.240.0730.05018.99
5.4.230.0770.05718.94
5.4.220.0930.06719.09
5.4.210.0630.05718.94
5.4.200.0770.08718.83
5.4.190.0770.06719.36
5.4.180.0670.05319.04
5.4.170.0670.06019.10
5.4.160.0670.07319.34
5.4.150.0830.05019.08
5.4.140.0770.07316.38
5.4.130.0830.05316.25
5.4.120.0600.05016.47
5.4.110.0170.06016.43
5.4.100.0430.05016.57
5.4.90.0600.04716.58
5.4.80.0700.06016.45
5.4.70.0270.03016.49
5.4.60.0000.04016.54
5.4.50.0030.07016.54
5.4.40.0270.05316.48
5.4.30.0330.03316.44
5.4.20.0000.07316.33

preferences:
41.64 ms | 401 KiB | 5 Q