3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hoge { private $hoge = null; private $fuga = null; public function __construct($hoge = []) { $this->set($hoge); } private function set($hoge = []) { foreach ($this as $key => $value) { $this->$key = (true === isset($options[$key])) ? $options[$key] : $value; var_dump($key, $value, $hoge[$key]); } } } $hoge = new Hoge(['hoge' => 1111, 'fuga' => 2222]);

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.70.0120.00316.48
8.3.60.0160.00618.45
8.3.50.0120.00716.41
8.3.40.0120.00318.57
8.3.30.0110.00318.72
8.3.20.0030.00720.29
8.3.10.0050.00320.91
8.3.00.0110.00720.38
8.2.190.0080.00818.16
8.2.180.0060.00916.38
8.2.170.0120.00922.96
8.2.160.0030.01720.47
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00421.02
8.2.120.0040.00426.35
8.2.110.0060.00322.08
8.2.100.0080.00318.03
8.2.90.0040.00422.32
8.2.80.0000.00817.97
8.2.70.0000.00917.93
8.2.60.0040.00418.28
8.2.50.0000.00818.12
8.2.40.0000.00820.40
8.2.30.0000.00719.20
8.2.20.0000.00718.11
8.2.10.0040.00418.01
8.2.00.0040.00418.09
8.1.280.0130.00725.92
8.1.270.0080.00022.18
8.1.260.0120.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00022.64
8.1.230.0090.00321.04
8.1.220.0040.00417.77
8.1.210.0040.00418.96
8.1.200.0040.00417.35
8.1.190.0050.00317.35
8.1.180.0070.00018.10
8.1.170.0000.00818.54
8.1.160.0090.00018.89
8.1.150.0040.00420.36
8.1.140.0040.00419.57
8.1.130.0000.00718.93
8.1.120.0050.00317.36
8.1.110.0000.00817.43
8.1.100.0030.00517.44
8.1.90.0000.00717.44
8.1.80.0040.00417.44
8.1.70.0000.00717.50
8.1.60.0000.00717.50
8.1.50.0040.00417.57
8.1.40.0050.00317.37
8.1.30.0030.00617.54
8.1.20.0000.00817.50
8.1.10.0040.00417.59
8.1.00.0040.00417.40
8.0.300.0020.00519.89
8.0.290.0020.00516.63
8.0.280.0030.00318.41
8.0.270.0030.00317.27
8.0.260.0030.00318.79
8.0.250.0060.00016.89
8.0.240.0070.00016.93
8.0.230.0070.00016.96
8.0.220.0040.00416.85
8.0.210.0030.00316.93
8.0.200.0040.00416.83
8.0.190.0040.00416.84
8.0.180.0050.00316.86
8.0.170.0050.00316.94
8.0.160.0000.00716.85
8.0.150.0040.00416.83
8.0.140.0000.00716.81
8.0.130.0050.00413.29
8.0.120.0030.00616.88
8.0.110.0040.00416.89
8.0.100.0060.00316.68
8.0.90.0000.00916.84
8.0.80.0080.01116.84
8.0.70.0030.00516.95
8.0.60.0030.00516.86
8.0.50.0040.00416.70
8.0.30.0100.00817.16
8.0.20.0070.01117.40
8.0.10.0070.00017.12
8.0.00.0090.00916.69
7.4.330.0020.00215.55
7.4.320.0060.00016.45
7.4.300.0030.00316.61
7.4.290.0030.00316.50
7.4.280.0000.00816.64
7.4.270.0070.00016.53
7.4.260.0060.00616.41
7.4.250.0080.00016.61
7.4.240.0030.00316.61
7.4.230.0030.00316.71
7.4.220.0160.01216.60
7.4.210.0070.01116.56
7.4.200.0000.00716.44
7.4.160.0040.01416.40
7.4.150.0100.00717.40
7.4.140.0100.00917.86
7.4.130.0010.00916.42
7.4.120.0110.00916.60
7.4.110.0120.00416.51
7.4.100.0170.00516.66
7.4.90.0110.00716.66
7.4.80.0140.00719.39
7.4.70.0100.00716.44
7.4.60.0070.01016.54
7.4.50.0050.00516.39
7.4.40.0070.01016.25
7.4.30.0150.00316.43
7.4.00.0040.01115.18
7.3.330.0050.00013.29
7.3.320.0000.00513.19
7.3.310.0030.00316.35
7.3.300.0070.00016.36
7.3.290.0030.00316.20
7.3.280.0080.00716.35
7.3.270.0090.00917.40
7.3.260.0060.01316.37
7.3.250.0120.00816.40
7.3.240.0110.01016.54
7.3.230.0060.01016.42
7.3.210.0100.00616.22
7.3.200.0110.00616.32
7.3.190.0030.01216.78
7.3.180.0100.00616.35
7.3.170.0120.00316.24
7.3.160.0100.01016.29
7.3.10.0110.00316.27
7.3.00.0040.00716.56
7.2.330.0080.01016.86
7.2.320.0100.00716.45
7.2.310.0120.00616.59
7.2.300.0100.01416.71
7.2.290.0090.00916.61
7.2.130.0000.00916.40
7.2.120.0040.01216.77
7.2.110.0030.00916.60
7.2.100.0000.01316.79
7.2.90.0100.00716.79
7.2.80.0070.01115.98
7.2.70.0080.00816.70
7.2.60.0050.00616.76
7.2.50.0080.00516.93
7.2.40.0100.00716.49
7.2.30.0040.01116.68
7.2.20.0090.00316.85
7.2.10.0100.00316.69
7.2.00.0030.00717.01
7.1.250.0030.01015.85
7.1.200.0060.00615.68
7.1.80.0030.01218.28
7.1.70.0020.01017.21
7.1.60.0140.01334.95
7.1.50.0140.01234.60
7.1.40.0160.01234.47
7.1.30.0210.00934.53
7.1.20.0190.00834.45
7.1.10.0070.01016.61
7.1.00.0000.01416.82
7.0.200.0090.00316.73
7.0.190.0070.00716.69
7.0.180.0020.01116.40
7.0.170.0060.00916.28
7.0.160.0070.00816.40
7.0.150.0020.01316.21
7.0.140.0020.01516.36
7.0.130.0060.00816.61
7.0.120.0050.00916.55
7.0.110.0090.00916.29
7.0.100.0050.01216.48
7.0.90.0070.00816.51
7.0.80.0050.00816.53
7.0.70.0030.01016.37
7.0.60.0080.00616.25
7.0.50.0030.01216.33
7.0.40.0050.00816.47
7.0.30.0070.00616.55
7.0.20.0060.00716.43
7.0.10.0070.00816.45
7.0.00.0060.01116.39

preferences:
18.52 ms | 401 KiB | 5 Q