3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo { public function __set(string $name, int $value): void { $this->{$name} = $value; } public function __get(string $name): int { return $this->{$name}; } } $o = new Foo; $o->x = '3'; var_dump($o->x);

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.01216.75
8.3.50.0040.01818.32
8.3.40.0150.00620.52
8.3.30.0030.01918.86
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.180.0040.01125.92
8.2.170.0070.00718.85
8.2.160.0040.01122.96
8.2.150.0030.00625.66
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.75
8.2.110.0040.00420.52
8.2.100.0060.00617.78
8.2.90.0000.00817.75
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0050.00317.50
8.2.50.0040.00418.05
8.2.40.0090.00018.03
8.2.30.0040.00417.88
8.2.20.0000.00717.99
8.2.10.0060.00319.14
8.2.00.0040.00419.18
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0100.00320.36
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.25
8.1.190.0100.00017.23
8.1.180.0060.00318.10
8.1.170.0030.00518.56
8.1.160.0000.00718.78
8.1.150.0040.00418.74
8.1.140.0070.00018.68
8.1.130.0000.00720.13
8.1.120.0070.00317.29
8.1.110.0000.00817.36
8.1.100.0050.00217.41
8.1.90.0050.00317.41
8.1.80.0030.00517.45
8.1.70.0030.00317.42
8.1.60.0040.00417.58
8.1.50.0040.00417.38
8.1.40.0030.00517.45
8.1.30.0040.00417.56
8.1.20.0080.00017.61
8.1.10.0050.00317.48
8.1.00.0040.00417.52
8.0.300.0050.00219.64
8.0.290.0000.00716.63
8.0.280.0000.00620.13
8.0.270.0030.00317.99
8.0.260.0030.00318.47
8.0.250.0000.00717.02
8.0.240.0070.00017.00
8.0.230.0030.00317.08
8.0.220.0060.00316.98
8.0.210.0070.00016.93
8.0.200.0000.00717.04
8.0.190.0000.00717.05
8.0.180.0040.00316.90
8.0.170.0060.00316.87
8.0.160.0040.00416.98
8.0.150.0030.00616.84
8.0.140.0000.00716.83
8.0.130.0000.00613.42
8.0.120.0040.00416.90
8.0.110.0040.00417.00
8.0.100.0040.00416.84
8.0.90.0070.00016.79
8.0.80.0080.01016.89
8.0.70.0030.00516.82
8.0.60.0070.00016.86
8.0.50.0040.00416.80
8.0.30.0120.00917.30
8.0.20.0190.00517.04
8.0.10.0040.00416.89
8.0.00.0120.00916.75
7.4.330.0050.00015.55
7.4.320.0080.00016.49
7.4.300.0060.00016.52
7.4.290.0030.00316.40
7.4.280.0040.00416.52
7.4.270.0030.00716.55
7.4.260.0050.00013.33
7.4.250.0050.00316.59
7.4.240.0000.00716.61
7.4.230.0030.00316.41
7.4.220.0030.00316.60
7.4.210.0060.01216.63
7.4.200.0030.00316.61
7.4.130.0130.00516.46
7.4.120.0160.00716.67
7.4.110.0030.01716.46
7.4.100.0070.01016.55
7.4.90.0040.01516.56
7.4.80.0070.01016.58
7.4.70.0140.00316.42
7.4.60.0160.00016.38
7.4.50.0080.00816.34
7.4.40.0130.00316.27
7.4.30.0090.00816.59
7.4.20.0030.01316.46
7.4.10.0130.00716.34
7.4.00.0070.01016.48
7.3.330.0060.00016.21
7.3.320.0050.00013.39
7.3.310.0030.00516.42
7.3.300.0030.00316.23
7.3.290.0100.00816.32
7.3.260.0180.00016.58
7.3.230.0150.00316.41
7.3.220.0080.00816.59
7.3.210.0080.00816.34
7.3.200.0060.01216.09
7.3.190.0120.00416.32
7.3.180.0070.01016.59
7.3.170.0090.00616.21
7.3.160.0090.00916.53
7.3.150.0060.01216.65
7.3.140.0090.00616.41
7.3.130.0090.00616.52
7.3.120.0070.01116.41
7.3.110.0120.00916.23
7.3.100.0120.00416.35
7.3.90.0060.01116.40
7.3.80.0140.00316.51
7.3.70.0080.00816.47
7.3.60.0060.01016.52
7.3.50.0090.00616.50
7.3.40.0040.01216.34
7.3.30.0130.00316.37
7.3.20.0100.00716.25
7.3.10.0090.00816.30
7.3.00.0130.00316.36
7.2.330.0070.01116.42
7.2.320.0080.00816.32
7.2.310.0130.00416.46
7.2.300.0060.00916.84
7.2.290.0140.00316.82
7.2.280.0100.00716.48
7.2.270.0130.00316.70
7.2.260.0060.01016.48
7.2.250.0100.01316.75
7.2.240.0030.01416.85
7.2.230.0100.01016.49
7.2.220.0110.00616.47
7.2.210.0000.01516.79
7.2.200.0110.00516.66
7.2.190.0160.00016.60
7.2.180.0130.00316.70
7.2.170.0070.01116.56
7.2.160.0040.01416.62
7.2.150.0170.01016.76
7.2.140.0030.01316.56
7.2.130.0070.01016.64
7.2.120.0100.00716.72
7.2.110.0140.00316.54
7.2.100.0060.01216.48
7.2.90.0090.00916.64
7.2.80.0050.01316.69
7.2.70.0040.01316.84
7.2.60.0090.00916.58
7.2.50.0100.00716.63
7.2.40.0100.00716.53
7.2.30.0060.01216.54
7.2.20.0100.00716.65
7.2.10.0040.01216.46
7.2.00.0070.01016.64

preferences:
64.87 ms | 401 KiB | 5 Q