3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Notify { protected int $id; public function __set($name, $value) { echo __METHOD__ . PHP_EOL; if (property_exists($this, $name)) { $this->{$name} = $value; } return $this; } } $obj = new Notify(); $obj->id = 1; var_dump($obj);

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.4.120.0060.00224.12
8.4.110.0130.00720.45
8.4.100.0080.00217.92
8.4.90.0070.00317.66
8.4.80.0140.00619.58
8.4.70.0130.00917.78
8.4.60.0100.00917.73
8.4.50.0100.01118.66
8.4.40.0070.01318.76
8.4.30.0100.01020.33
8.4.20.0090.00917.77
8.4.10.0040.00419.48
8.3.250.0140.00518.96
8.3.240.0030.00516.85
8.3.230.0030.00716.87
8.3.220.0120.00716.49
8.3.210.0130.00616.91
8.3.200.0120.00716.48
8.3.190.0090.01117.02
8.3.180.0120.00516.79
8.3.170.0110.00718.99
8.3.160.0170.00018.49
8.3.150.0170.00318.88
8.3.140.0140.00420.55
8.3.130.0040.00418.34
8.3.120.0000.00819.05
8.3.110.0080.00320.94
8.3.100.0130.00324.06
8.3.90.0040.00426.77
8.3.80.0000.00816.63
8.3.70.0090.00618.18
8.3.60.0120.00616.50
8.3.50.0140.00016.73
8.3.40.0100.00322.18
8.3.30.0120.00621.59
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0020.00526.16
8.2.290.0040.00520.95
8.2.280.0100.00916.52
8.2.270.0030.01417.40
8.2.260.0060.00318.41
8.2.250.0040.00418.23
8.2.240.0110.00822.46
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0130.00726.77
8.2.200.0030.00616.38
8.2.190.0000.01518.16
8.2.180.0130.00616.50
8.2.170.0110.00322.96
8.2.160.0070.01022.96
8.2.150.0060.00625.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00321.10
8.2.110.0030.01622.20
8.2.100.0090.01221.02
8.2.90.0220.00918.74
8.2.80.0150.00618.91
8.2.70.0080.00818.76
8.2.60.0100.00518.77
8.2.50.0270.00718.76
8.2.40.0170.00718.65
8.2.30.0120.01218.63
8.2.20.0190.00318.78
8.2.10.0230.00719.08
8.2.00.0260.00318.98
8.1.330.0150.00517.84
8.1.320.0110.00916.19
8.1.310.0110.00716.52
8.1.300.0040.00417.57
8.1.290.0070.00318.88
8.1.280.0110.00425.92
8.1.270.0060.00323.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00518.44
8.1.230.0120.00318.52
8.1.220.0230.00618.49
8.1.210.0130.00019.82
8.1.200.0170.00718.36
8.1.190.0120.00018.42
8.1.180.0200.00618.37
8.1.170.0080.00518.63
8.1.160.0150.00518.76
8.1.150.0210.00320.56
8.1.140.0100.00318.37
8.1.130.0090.00418.43
8.1.120.0130.00018.67
8.1.110.0090.00518.58
8.1.100.0140.00318.39
8.1.90.0110.00318.69
8.1.80.0070.00718.49
8.1.70.0090.00318.75
8.1.60.0080.00818.43
8.1.50.0090.00418.41
8.1.40.0080.00818.70
8.1.30.0100.00218.84
8.1.20.0160.00018.80
8.1.10.0130.00018.76
8.1.00.0110.00218.67
8.0.300.0110.00417.82
8.0.290.0130.00317.90
8.0.280.0100.00317.90
8.0.270.0070.00717.64
8.0.260.0150.00017.82
8.0.250.0160.00018.05
8.0.240.0050.00917.88
8.0.230.0120.00018.24
8.0.220.0110.00417.66
8.0.210.0140.00017.77
8.0.200.0230.00317.88
8.0.190.0150.01218.07
8.0.180.0000.01418.02
8.0.170.0220.00317.82
8.0.160.0110.00417.88
8.0.150.0220.01117.71
8.0.140.0150.00017.75
8.0.130.0220.00018.25
8.0.120.0180.00917.92
8.0.110.0100.00317.88
8.0.100.0170.00817.75
8.0.90.0160.00617.86
8.0.80.0120.00317.88
8.0.70.0110.00617.51
8.0.60.0130.00317.82
8.0.50.0150.00417.50
8.0.30.0330.00017.86
8.0.20.0150.00017.88
8.0.10.0180.00917.98

preferences:
27.18 ms | 403 KiB | 5 Q