3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo { private array $data = []; public function __set(string $name, $value): void { $this->data[$name] = $value; } public function __isset(string $name): bool { return isset($this->data[$name]); } public function __unset(string $name): void { unset($this->data[$name]); } } $foo = new Foo(); $foo->{1} = 'one'; $foo->{2} = 'two'; var_dump( isset($foo->{1}), // true isset($foo->{2}) // true ); unset($foo->{1}); var_dump( isset($foo->{1}) // false );

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.0090.00916.50
8.3.50.0100.00318.02
8.3.40.0160.00618.85
8.3.30.0170.00318.84
8.3.20.0000.00721.85
8.3.10.0030.00621.92
8.3.00.0040.00423.39
8.2.180.0090.00618.17
8.2.170.0090.00618.91
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00319.36
8.2.110.0060.00319.28
8.2.100.0070.00417.72
8.2.90.0060.00317.78
8.2.80.0030.00619.30
8.2.70.0050.00317.38
8.2.60.0040.00417.63
8.2.50.0040.00418.05
8.2.40.0040.00418.24
8.2.30.0050.00219.45
8.2.20.0030.00618.11
8.2.10.0050.00321.02
8.2.00.0080.00019.23
8.1.280.0130.00325.92
8.1.270.0110.00722.37
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.05
8.1.230.0070.00420.88
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00517.13
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00718.75
8.1.150.0040.00418.89
8.1.140.0000.00718.73
8.1.130.0030.00320.09
8.1.120.0030.00317.36
8.1.110.0000.00717.39
8.1.100.0050.00317.40
8.1.90.0000.00717.29
8.1.80.0070.00017.36
8.1.70.0040.00417.40
8.1.60.0000.00817.60
8.1.50.0050.00217.56
8.1.40.0040.00417.50
8.1.30.0070.00317.61
8.1.20.0000.00817.68
8.1.10.0020.00517.57
8.1.00.0040.00417.48
8.0.300.0070.00020.04
8.0.290.0000.00816.75
8.0.280.0030.00318.49
8.0.270.0030.00318.01
8.0.260.0030.00318.45
8.0.250.0000.00616.88
8.0.240.0050.00316.94
8.0.230.0040.00416.87
8.0.220.0040.00416.84
8.0.210.0030.00316.91
8.0.200.0070.00016.98
8.0.190.0040.00416.84
8.0.180.0000.00716.90
8.0.170.0030.00616.82
8.0.160.0040.00416.92
8.0.150.0000.00716.91
8.0.140.0000.00916.87
8.0.130.0030.00313.30
8.0.120.0000.00716.89
8.0.110.0000.00716.86
8.0.100.0070.00016.78
8.0.90.0040.00416.89
8.0.80.0060.01116.88
8.0.70.0040.00416.77
8.0.60.0000.00816.82
8.0.50.0000.00716.85
8.0.30.0170.00017.17
8.0.20.0150.00717.11
8.0.10.0030.00317.02
8.0.00.0120.00916.80
7.4.330.0000.00615.55
7.4.320.0000.00616.62
7.4.300.0030.00316.50
7.4.290.0040.00416.64
7.4.280.0090.00016.57
7.4.270.0030.00316.58
7.4.260.0050.00013.31
7.4.250.0000.00716.53
7.4.240.0020.00516.44
7.4.230.0030.00316.59
7.4.220.0030.00316.59
7.4.210.0080.00616.53
7.4.200.0000.00716.61
7.4.130.0110.00916.69
7.4.120.0060.01016.66
7.4.110.0030.01416.41
7.4.100.0100.01616.43
7.4.90.0090.00916.47
7.4.80.0000.01719.39
7.4.70.0040.01216.48
7.4.60.0190.00016.54
7.4.50.0070.00716.18
7.4.40.0090.00916.56
7.4.30.0070.01116.38
7.4.20.0110.00716.62
7.4.10.0060.01216.40
7.4.00.0130.00416.63
7.3.330.0020.00515.93
7.3.320.0000.00613.07
7.3.310.0070.00016.04
7.3.300.0030.00316.24
7.3.290.0070.00816.19
7.3.280.0040.01116.12
7.3.260.0130.00616.09
7.3.240.0070.00916.18
7.3.230.0070.01016.16
7.3.210.0100.00716.23
7.3.200.0070.01416.11
7.3.190.0090.00616.29
7.3.180.0130.00316.21
7.3.170.0120.00916.26
7.3.160.0030.01616.21
7.3.150.0040.01516.22
7.3.140.0000.01516.16
7.3.130.0120.00416.16
7.3.120.0070.01016.05
7.3.110.0070.01016.20
7.3.100.0040.01516.16
7.3.90.0090.00616.12
7.3.80.0040.01216.25
7.3.70.0150.00016.17
7.3.60.0090.00616.04
7.3.50.0030.01316.16
7.3.40.0060.01616.00
7.3.30.0080.01115.98
7.3.20.0160.00716.20
7.3.10.0040.01516.10
7.3.00.0100.01016.15
7.2.330.0030.01316.45
7.2.320.0060.01016.41
7.2.310.0100.01016.20
7.2.300.0170.00716.48
7.2.290.0130.00616.02
7.2.280.0030.01616.42
7.2.270.0100.01016.31
7.2.260.0060.01016.12
7.2.250.0090.00916.46
7.2.240.0110.00716.06
7.2.230.0060.01016.21
7.2.220.0070.01016.07
7.2.210.0000.01616.39
7.2.200.0090.00816.32
7.2.190.0090.00616.36
7.2.180.0090.00816.29
7.2.170.0030.01216.15
7.2.160.0070.01416.23
7.2.150.0070.01716.34
7.2.140.0070.01016.32
7.2.130.0060.01516.50
7.2.120.0070.01416.23
7.2.110.0070.01016.40
7.2.100.0100.00616.43
7.2.90.0040.01816.32
7.2.80.0060.01116.27
7.2.70.0140.00916.59
7.2.60.0230.01316.19
7.2.50.0070.01016.38
7.2.40.0110.00716.48
7.2.30.0100.01016.14
7.2.20.0090.00916.46
7.2.10.0070.01016.45
7.2.00.0050.01516.55

preferences:
67.58 ms | 401 KiB | 5 Q