3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait HydrateBehaviour { public static function hydrate($other) { $new = new self(); foreach ($other as $k => $v) { $new->{$k} = $v; } return $new; } } class Entity { use HydrateBehaviour; private $ololo; private $foo; private $bar; public function out() { echo $this->ololo, $this->foo, $this->bar; } } $en = Entity::hydrate(['ololo' => 1, 'foo' => 2]); $en->out();

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.01218.56
8.3.50.0070.01018.18
8.3.40.0040.01118.45
8.3.30.0040.01118.71
8.3.20.0030.00621.52
8.3.10.0040.00422.04
8.3.00.0050.00320.90
8.2.180.0090.01318.56
8.2.170.0070.00722.96
8.2.160.0110.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00022.24
8.2.120.0080.00026.35
8.2.110.0050.00521.00
8.2.100.0040.00817.78
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0050.00317.93
8.2.50.0060.00318.10
8.2.40.0040.00422.09
8.2.30.0070.00022.28
8.2.20.0000.00818.06
8.2.10.0040.00417.91
8.2.00.0000.00718.09
8.1.280.0100.00325.92
8.1.270.0040.00423.96
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0040.00821.24
8.1.230.0070.00317.45
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0050.00318.56
8.1.160.0000.00818.93
8.1.150.0040.00420.26
8.1.140.0080.00019.49
8.1.130.0000.00718.88
8.1.120.0030.00417.36
8.1.110.0080.00017.35
8.1.100.0000.00817.31
8.1.90.0040.00417.42
8.1.80.0000.00717.28
8.1.70.0000.00817.47
8.1.60.0060.00317.46
8.1.50.0040.00417.54
8.1.40.0040.00417.58
8.1.30.0060.00317.48
8.1.20.0030.00517.69
8.1.10.0000.00817.58
8.1.00.0040.00417.50
8.0.300.0090.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.49
8.0.270.0070.00017.10
8.0.260.0060.00317.29
8.0.250.0070.00016.94
8.0.240.0050.00216.85
8.0.230.0000.00716.96
8.0.220.0000.00816.88
8.0.210.0030.00316.86
8.0.200.0070.00016.96
8.0.190.0040.00416.99
8.0.180.0080.00016.93
8.0.170.0000.00716.89
8.0.160.0000.00716.87
8.0.150.0030.00316.91
8.0.140.0050.00216.68
8.0.130.0030.00313.32
8.0.120.0030.00616.92
8.0.110.0040.00416.95
8.0.100.0040.00416.91
8.0.90.0080.00016.74
8.0.80.0120.00316.84
8.0.70.0040.00416.90
8.0.60.0000.00816.92
8.0.50.0050.00316.72
8.0.30.0110.00717.11
8.0.20.0110.01317.40
8.0.10.0040.00417.09
8.0.00.0120.00616.92
7.4.330.0050.00015.55
7.4.320.0000.00616.54
7.4.300.0000.00816.41
7.4.290.0070.00016.51
7.4.280.0000.00816.51
7.4.270.0030.00316.60
7.4.260.0070.00016.63
7.4.250.0000.00816.46
7.4.240.0070.00016.51
7.4.230.0000.00716.48
7.4.220.0100.01616.65
7.4.210.0170.00316.48
7.4.200.0050.00316.63
7.4.160.0110.00616.51
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0080.00916.46
7.4.120.0120.00816.54
7.4.110.0130.01016.55
7.4.100.0170.00016.41
7.4.90.0110.00716.45
7.4.80.0150.00319.39
7.4.70.0120.00416.45
7.4.60.0070.01016.49
7.4.50.0000.01716.42
7.4.40.0100.00716.35
7.4.30.0090.00616.60
7.4.00.0000.01214.78
7.3.330.0050.00013.16
7.3.320.0030.00313.32
7.3.310.0030.00316.30
7.3.300.0000.00716.17
7.3.290.0120.00216.29
7.3.280.0090.01016.27
7.3.270.0190.00417.40
7.3.260.0180.00516.66
7.3.250.0100.00616.33
7.3.240.0060.01116.50
7.3.230.0070.01116.61
7.3.210.0000.01816.38
7.3.200.0050.01516.29
7.3.190.0030.01216.30
7.3.180.0110.00616.44
7.3.170.0000.02116.38
7.3.160.0080.00816.38
7.3.10.0060.00916.78
7.3.00.0070.01016.66
7.2.330.0110.00616.75
7.2.320.0030.01316.69
7.2.310.0060.01116.47
7.2.300.0130.00416.68
7.2.290.0050.01116.59
7.2.130.0040.00816.80
7.2.120.0000.01216.72
7.2.110.0000.00917.13
7.2.100.0000.01316.90
7.2.90.0130.00316.96
7.2.80.0060.00816.87
7.2.70.0040.00716.82
7.2.60.0070.00616.96
7.2.50.0060.00516.96
7.2.40.0000.01316.86
7.2.30.0050.00516.78
7.2.20.0080.00017.06
7.2.10.0090.00616.92
7.2.00.0040.01116.74
7.1.250.0070.00715.76
7.1.200.0100.00015.50
7.1.70.0030.00617.21
7.1.60.0100.01017.13
7.1.20.0170.09040.25
7.1.10.0070.07022.24
7.1.00.0200.05022.28
7.0.200.0090.00916.47
7.0.160.0100.06321.89
7.0.150.0070.06021.88
7.0.140.0130.05721.89
7.0.130.0030.08021.92
7.0.120.0100.07321.93
7.0.110.0170.06321.84
7.0.100.0030.06721.82
7.0.90.0070.06021.95
7.0.80.0070.06721.88
7.0.70.0130.05721.94
7.0.60.0100.05321.84
7.0.50.0130.05021.80
7.0.40.0070.06021.83
7.0.30.0100.08021.85
7.0.20.0170.07021.79
7.0.10.0170.05721.87
7.0.00.0130.05321.79

preferences:
57.26 ms | 401 KiB | 5 Q