3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'counters' => [ 'success' => 1, 'failed' => 3 ], 'aa' => [1,2,3], 'column_errors' => false ]; $update = array( ); class Job { private $data; public function __construct(array $data) { $this->data = $data; } public function getData() { return $this->data; } public function updateDataWith(array $update) { $result = array_replace_recursive($this->data, $update); if (is_null($result)) { throw new \RuntimeException; } $this->data = $result; } } $job = new Job($a); $job->updateDataWith($update); var_dump($job->getData());

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.40.0040.01118.67
8.3.30.0070.00718.30
8.3.20.0050.00320.33
8.3.10.0000.00823.56
8.3.00.0000.00819.68
8.2.170.0110.00422.96
8.2.160.0070.01018.91
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00420.97
8.2.120.0070.00026.35
8.2.110.0070.00322.05
8.2.100.0000.01117.71
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0000.00817.38
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0070.00020.42
8.2.30.0000.00919.16
8.2.20.0000.00718.00
8.2.10.0000.00818.12
8.2.00.0040.00418.11
8.1.270.0070.00022.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00723.97
8.1.230.0070.00317.70
8.1.220.0070.00317.79
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0040.00417.36
8.1.180.0000.00718.10
8.1.170.0080.00018.65
8.1.160.0070.00018.89
8.1.150.0070.00018.79
8.1.140.0040.00419.51
8.1.130.0070.00018.83
8.1.120.0000.00717.41
8.1.110.0040.00417.37
8.1.100.0000.00817.37
8.1.90.0030.00517.43
8.1.80.0040.00417.41
8.1.70.0030.00517.43
8.1.60.0030.00517.61
8.1.50.0000.00817.39
8.1.40.0030.00517.53
8.1.30.0000.00817.61
8.1.20.0040.00417.68
8.1.10.0000.00817.57
8.1.00.0000.00917.46
8.0.300.0030.00618.77
8.0.290.0000.00816.63
8.0.280.0070.00018.39
8.0.270.0000.00717.20
8.0.260.0030.00318.77
8.0.250.0030.00316.96
8.0.240.0040.00416.89
8.0.230.0080.00016.78
8.0.220.0040.00416.74
8.0.210.0000.00716.90
8.0.200.0060.00016.92
8.0.190.0000.00816.73
8.0.180.0040.00416.87
8.0.170.0050.00216.89
8.0.160.0000.00816.91
8.0.150.0000.00716.75
8.0.140.0000.00716.79
8.0.130.0000.00513.21
8.0.120.0030.00516.78
8.0.110.0000.00716.66
8.0.100.0040.00416.79
8.0.90.0000.00716.89
8.0.80.0120.00916.83
8.0.70.0050.00316.82
8.0.60.0040.00416.72
8.0.50.0040.00416.82
8.0.30.0060.01017.02
8.0.20.0130.00617.40
8.0.10.0070.00016.91
8.0.00.0140.00616.53
7.4.330.0050.00015.55
7.4.320.0060.00016.54
7.4.300.0040.00416.59
7.4.290.0000.00716.65
7.4.280.0000.00716.63
7.4.270.0000.00816.56
7.4.260.0030.00316.54
7.4.250.0030.00316.46
7.4.240.0030.00316.63
7.4.230.0030.00316.41
7.4.220.0030.01816.60
7.4.210.0070.01016.61
7.4.200.0040.00416.47
7.4.160.0130.00516.45
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0110.00716.48
7.4.120.0100.01116.51
7.4.110.0080.00816.41
7.4.100.0150.00916.40
7.4.90.0060.01016.51
7.4.80.0110.00719.39
7.4.70.0150.00416.50
7.4.60.0060.01016.38
7.4.50.0120.00216.43
7.4.40.0040.01216.26
7.4.30.0030.01416.51
7.4.00.0030.01214.93
7.3.330.0000.00513.11
7.3.320.0000.00613.24
7.3.310.0000.00716.08
7.3.300.0000.00716.13
7.3.290.0040.01116.26
7.3.280.0070.00916.24
7.3.270.0090.00917.40
7.3.260.0140.00416.36
7.3.250.0100.00916.35
7.3.240.0080.01016.36
7.3.230.0080.00816.40
7.3.210.0060.00916.23
7.3.200.0130.00316.07
7.3.190.0060.01116.29
7.3.180.0120.00416.55
7.3.170.0140.00316.27
7.3.160.0090.00916.40
7.2.330.0110.00816.57
7.2.320.0130.01616.78
7.2.310.0090.00916.70
7.2.300.0040.01216.69
7.2.290.0110.00716.76
7.2.60.0060.00916.73
7.2.50.0100.00317.08
7.1.200.0000.01415.89
7.1.70.0100.01517.09
7.1.60.0300.01034.76
7.1.50.0190.01334.91
7.1.40.0250.00934.59
7.1.30.0150.02234.51
7.1.20.0320.00734.41
7.1.10.0000.02316.77
7.1.00.0140.00416.74
7.0.200.0080.00816.74
7.0.190.0040.01216.92
7.0.180.0040.01216.22
7.0.170.0070.01416.24
7.0.160.0090.01016.37
7.0.150.0000.02016.22
7.0.140.0030.01516.27
7.0.130.0060.01316.54
7.0.120.0030.01216.35
7.0.110.0120.00616.16
7.0.100.0150.00316.43
7.0.90.0100.00716.43
7.0.80.0060.01516.34
7.0.70.0090.01216.27
7.0.60.0070.01416.13
7.0.50.0070.01016.31
7.0.40.0070.01716.41
7.0.30.0100.01416.60
7.0.20.0060.01216.51
7.0.10.0100.00716.68
7.0.00.0060.01216.23

preferences:
51.73 ms | 400 KiB | 5 Q