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($controller, $name)) { throw new Exception("No such property: $name"); } return $this->{$name}; } }; var_dump($person); var_dump($person->age); $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.0070.00716.61
8.3.50.0130.01021.15
8.3.40.0070.01419.01
8.3.30.0180.00018.97
8.3.20.0020.00520.18
8.3.10.0080.00023.61
8.3.00.0040.00419.80
8.2.180.0150.00016.59
8.2.170.0090.00622.96
8.2.160.0070.00720.37
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00417.75
8.2.110.0040.00722.14
8.2.100.0090.00318.03
8.2.90.0050.00319.27
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0030.00621.20
8.2.30.0070.00020.64
8.2.20.0000.00817.63
8.2.10.0060.00318.05
8.2.00.0000.00918.12
8.1.280.0120.00325.92
8.1.270.0190.00023.84
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0040.00422.53
8.1.230.0080.00317.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.35
8.1.190.0000.00817.38
8.1.180.0000.00718.10
8.1.170.0000.00818.51
8.1.160.0000.00721.93
8.1.150.0070.00018.90
8.1.140.0040.00421.47
8.1.130.0000.00717.75
8.1.120.0070.00017.39
8.1.110.0030.00517.42
8.1.100.0040.00417.43
8.1.90.0070.00017.39
8.1.80.0030.00617.48
8.1.70.0070.00017.46
8.1.60.0000.00817.59
8.1.50.0040.00417.50
8.1.40.0000.01017.40
8.1.30.0040.00417.58
8.1.20.0110.00017.55
8.1.10.0040.00417.49
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0060.00316.88
8.0.280.0090.00018.32
8.0.270.0070.00017.27
8.0.260.0030.00517.25
8.0.250.0000.00716.95
8.0.240.0000.00716.98
8.0.230.0030.00416.90
8.0.220.0040.00416.97
8.0.210.0040.00416.98
8.0.200.0000.00817.00
8.0.190.0060.00316.91
8.0.180.0000.00717.04
8.0.170.0030.00616.93
8.0.160.0000.00816.96
8.0.150.0000.00716.89
8.0.140.0050.00216.80
8.0.130.0060.00013.34
8.0.120.0020.00516.98
8.0.110.0070.00016.82
8.0.100.0000.00816.78
8.0.90.0030.00616.99
8.0.80.0120.00616.86
8.0.70.0000.00816.99
8.0.60.0030.00617.02
8.0.50.0090.00016.95
8.0.30.0110.00717.29
8.0.20.0130.00717.40
8.0.10.0020.00517.15
8.0.00.0080.01016.83
7.4.330.0050.00015.14
7.4.320.0050.00216.60
7.4.300.0030.00316.52
7.4.290.0070.00016.63
7.4.280.0070.00016.50
7.4.270.0070.00016.50
7.4.260.0030.00516.48
7.4.250.0040.00416.33
7.4.240.0020.00516.48
7.4.230.0070.00016.61
7.4.220.0090.00616.64
7.4.210.0070.01316.56
7.4.200.0070.00016.69
7.4.160.0000.01516.61
7.4.150.0140.00417.40
7.4.140.0110.00917.86
7.4.130.0110.01116.59
7.4.120.0090.01116.56
7.4.110.0090.00916.59
7.4.100.0090.00916.69
7.4.90.0090.00916.49
7.4.80.0030.01619.39
7.4.70.0120.00416.51
7.4.60.0100.00616.67
7.4.50.0000.00716.54
7.4.40.0070.01016.62
7.4.30.0120.00916.69
7.4.00.0070.00714.68
7.3.330.0000.00613.26
7.3.320.0060.00013.46
7.3.310.0050.00216.42
7.3.300.0000.00716.31
7.3.290.0060.00916.39
7.3.280.0070.01016.45
7.3.270.0090.00917.40
7.3.260.0170.00716.48
7.3.250.0080.00916.52
7.3.240.0130.00816.52
7.3.230.0120.00616.39
7.3.210.0090.01516.27
7.3.200.0140.00716.43
7.3.190.0110.00516.68
7.3.180.0130.00316.54
7.3.170.0060.01216.61
7.3.160.0140.00316.54
7.3.10.0080.00716.46
7.3.00.0100.00316.50
7.2.330.0110.00716.36
7.2.320.0090.00916.75
7.2.310.0130.00316.86
7.2.300.0070.01016.81
7.2.290.0100.01316.37
7.2.130.0090.00916.99
7.2.120.0040.01116.59
7.2.110.0150.00016.89
7.2.100.0080.00316.97
7.2.90.0070.00716.67
7.2.80.0090.00617.13
7.2.70.0030.01416.95
7.2.60.0040.00816.92
7.2.50.0070.00716.56
7.2.40.0030.01017.17
7.2.30.0100.00316.93
7.2.20.0000.01116.98
7.2.10.0030.01016.98
7.2.00.0070.00818.17
7.1.250.0100.00015.79
7.1.200.0000.00715.88
7.1.100.0040.00718.23
7.1.70.0080.00017.29
7.1.60.0060.01919.50
7.1.50.0090.01216.97
7.1.00.0100.07022.31
7.0.200.0030.00516.55
7.0.60.0100.03319.79
7.0.50.0070.08017.88
7.0.40.0030.07720.20
7.0.30.0330.07020.23
7.0.20.0200.07320.17
7.0.10.0170.06320.12
7.0.00.0070.08720.08
5.6.280.0000.03320.99
5.6.210.0030.04020.46
5.6.200.0100.04318.18
5.6.190.0100.04720.68
5.6.180.0330.06320.48
5.6.170.0330.04720.54
5.6.160.0200.07320.55
5.6.150.0030.05718.23
5.6.140.0000.04318.16
5.6.130.0100.04718.11
5.6.120.0070.07321.00
5.6.110.0170.07020.98
5.6.100.0200.06320.97
5.6.90.0030.08721.03
5.6.80.0130.04720.28
5.5.350.0070.07020.32
5.5.340.0130.07017.98
5.5.330.0070.04720.41
5.5.320.3670.04720.27
5.5.310.0300.08320.30
5.5.300.0100.06717.96
5.5.290.0100.08017.98
5.5.280.0100.05320.76
5.5.270.0000.04720.83
5.5.260.0070.04020.76
5.5.250.0100.05320.71
5.5.240.0030.07020.12
5.4.450.0770.06719.63
5.4.440.0830.07319.16
5.4.430.0730.06719.32
5.4.420.0530.06019.60
5.4.410.0600.05319.46
5.4.400.0630.05319.28
5.4.390.0630.05719.28
5.4.380.0630.05019.28
5.4.370.0600.05018.95
5.4.360.0630.05318.84
5.4.350.0770.04319.23
5.4.340.0700.04719.28
5.4.320.0630.05319.28
5.4.310.0630.05019.28
5.4.300.0600.05318.84
5.4.290.0630.04719.08
5.4.280.0570.05318.84
5.4.270.0700.05019.28
5.4.260.0570.05719.36
5.4.250.0670.05019.11
5.4.240.0670.05318.99
5.4.230.0670.05019.12
5.4.220.0600.05319.36
5.4.210.0600.05319.27
5.4.200.0570.05719.06
5.4.190.0570.06019.37
5.4.180.0630.04719.24
5.4.170.0770.07019.11
5.4.160.0630.05319.09
5.4.150.0670.04719.11
5.4.140.0630.04716.39
5.4.130.0600.05316.36
5.4.120.0730.04016.66
5.4.110.0670.05016.45
5.4.100.0600.05716.66
5.4.90.0670.04716.45
5.4.80.0570.05316.26
5.4.70.0270.04716.37
5.4.60.0000.04016.43
5.4.50.0000.03316.25
5.4.40.0200.06316.16
5.4.30.0300.06716.51
5.4.20.0030.06716.42

preferences:
65.2 ms | 401 KiB | 5 Q