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( 'column_errors' => true, ); 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.60.0150.00016.50
8.3.50.0150.00018.09
8.3.40.0070.00718.67
8.3.30.0070.00718.52
8.3.20.0070.00020.22
8.3.10.0030.00523.67
8.3.00.0060.00319.57
8.2.180.0150.00418.17
8.2.170.0140.00022.96
8.2.160.0070.01018.96
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0040.00421.00
8.2.120.0040.00426.35
8.2.110.0060.00322.29
8.2.100.0040.00817.74
8.2.90.0080.00019.08
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0090.00017.92
8.2.50.0000.00818.10
8.2.40.0040.00420.55
8.2.30.0040.00419.07
8.2.20.0030.00518.00
8.2.10.0070.00018.07
8.2.00.0030.00618.13
8.1.280.0100.01025.92
8.1.270.0040.00422.03
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.01023.83
8.1.230.0040.00722.14
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00517.22
8.1.180.0050.00218.10
8.1.170.0050.00318.45
8.1.160.0040.00418.89
8.1.150.0000.00718.79
8.1.140.0040.00419.57
8.1.130.0040.00418.88
8.1.120.0040.00417.46
8.1.110.0000.00817.28
8.1.100.0030.00617.37
8.1.90.0060.00317.30
8.1.80.0070.00017.39
8.1.70.0030.00517.38
8.1.60.0030.00617.45
8.1.50.0060.00317.54
8.1.40.0030.00617.36
8.1.30.0000.00817.70
8.1.20.0040.00417.65
8.1.10.0050.00317.54
8.1.00.0080.00317.45
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0030.00318.42
8.0.270.0080.00017.19
8.0.260.0030.00318.73
8.0.250.0030.00316.95
8.0.240.0000.00716.73
8.0.230.0000.00716.86
8.0.220.0040.00416.80
8.0.210.0030.00316.82
8.0.200.0000.00616.86
8.0.190.0050.00216.85
8.0.180.0000.00716.93
8.0.170.0040.00416.84
8.0.160.0070.00016.86
8.0.150.0000.00916.83
8.0.140.0070.00016.77
8.0.130.0030.00313.32
8.0.120.0040.00416.83
8.0.110.0040.00416.82
8.0.100.0060.00316.70
8.0.90.0000.00716.71
8.0.80.0080.00816.84
8.0.70.0040.00416.87
8.0.60.0000.00716.84
8.0.50.0070.00016.72
8.0.30.0090.00716.86
8.0.20.0100.00917.40
8.0.10.0050.00316.80
8.0.00.0030.01516.59
7.4.330.0000.00515.55
7.4.320.0030.00316.46
7.4.300.0030.00316.40
7.4.290.0050.00316.48
7.4.280.0030.00516.59
7.4.270.0000.00716.42
7.4.260.0070.00016.58
7.4.250.0080.00016.50
7.4.240.0000.00716.65
7.4.230.0080.00016.55
7.4.220.0090.01316.54
7.4.210.0060.00916.64
7.4.200.0000.00716.39
7.4.160.0090.00716.52
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0110.00516.45
7.4.120.0110.01016.46
7.4.110.0090.00916.42
7.4.100.0060.01216.41
7.4.90.0090.00916.43
7.4.80.0080.00819.39
7.4.70.0100.00716.60
7.4.60.0100.00716.71
7.4.50.0050.01016.33
7.4.40.0180.00316.27
7.4.30.0170.00316.45
7.4.10.0060.01215.03
7.4.00.0060.01014.97
7.3.330.0060.00013.25
7.3.320.0050.00013.10
7.3.310.0030.00316.27
7.3.300.0000.00716.11
7.3.290.0090.00516.22
7.3.280.0100.00716.20
7.3.270.0200.00417.40
7.3.260.0100.00716.35
7.3.250.0100.00916.25
7.3.240.0070.01216.23
7.3.230.0120.00616.40
7.3.210.0080.00816.34
7.3.200.0100.00616.19
7.3.190.0100.00716.25
7.3.180.0070.01016.49
7.3.170.0080.00816.19
7.3.160.0130.00716.45
7.3.130.0110.00714.34
7.3.120.0050.01214.34
7.3.110.0090.01014.86
7.3.100.0050.00914.57
7.3.90.0080.00814.75
7.3.80.0020.01314.62
7.3.70.0050.00814.62
7.3.60.0040.00814.68
7.3.50.0090.00514.53
7.3.40.0030.00914.61
7.3.30.0080.00614.61
7.3.20.0020.00816.53
7.3.10.0060.00616.55
7.3.00.0010.01216.40
7.2.330.0140.00316.80
7.2.320.0100.01016.80
7.2.310.0090.00916.72
7.2.300.0070.01016.59
7.2.290.0030.01316.50
7.2.260.0100.01015.03
7.2.250.0090.00614.75
7.2.240.0080.00915.13
7.2.230.0030.01315.24
7.2.220.0050.00814.83
7.2.210.0020.01215.09
7.2.200.0090.00315.10
7.2.190.0030.01114.88
7.2.180.0080.00514.91
7.2.170.0040.00715.09
7.2.160.0030.00915.05
7.2.150.0050.00817.00
7.2.140.0040.01016.73
7.2.130.0060.00916.86
7.2.120.0070.00816.79
7.2.110.0070.00316.90
7.2.100.0060.00616.72
7.2.90.0030.00817.02
7.2.80.0070.00517.00
7.2.70.0080.00616.95
7.2.60.0070.00616.87
7.2.50.0060.00816.86
7.2.40.0060.00716.88
7.2.30.0080.00616.85
7.2.20.0110.00516.82
7.2.10.0070.01116.77
7.2.00.0060.00916.75
7.1.330.0050.00915.78
7.1.320.0070.00715.63
7.1.310.0040.00815.84
7.1.300.0070.00715.73
7.1.290.0020.00815.58
7.1.280.0060.00615.75
7.1.270.0060.00815.58
7.1.260.0050.00915.72
7.1.250.0030.00915.70
7.1.240.0050.00715.72
7.1.230.0050.00715.65
7.1.220.0060.00315.67
7.1.210.0030.01015.73
7.1.200.0050.00515.78
7.1.190.0070.00515.73
7.1.180.0050.00515.86
7.1.170.0030.00915.73
7.1.160.0050.00815.72
7.1.150.0050.00615.77
7.1.140.0050.01115.65
7.1.130.0060.00715.56
7.1.120.0040.00715.61
7.1.110.0050.00715.76
7.1.100.0050.00515.85
7.1.90.0040.00715.82
7.1.80.0050.00815.76
7.1.70.0060.00716.19
7.1.60.0100.01022.06
7.1.50.0100.00722.15
7.1.40.0140.00821.93
7.1.30.0110.00821.91
7.1.20.0100.01221.93
7.1.10.0030.00916.03
7.1.00.0070.00715.93
7.0.330.0080.00715.24
7.0.320.0010.00915.31
7.0.310.0070.00415.14
7.0.300.0050.00815.52
7.0.290.0030.00815.26
7.0.280.0020.00915.16
7.0.270.0070.00715.28
7.0.260.0070.00515.21
7.0.250.0030.01215.41
7.0.240.0030.00915.39
7.0.230.0090.00315.41
7.0.220.0100.00715.19
7.0.210.0020.00915.42
7.0.200.0070.00715.79
7.0.190.0010.01115.99
7.0.180.0050.00715.65
7.0.170.0030.01015.59
7.0.160.0070.00815.74
7.0.150.0060.00815.79
7.0.140.0050.00815.76
7.0.130.0060.00815.81
7.0.120.0030.01215.80
7.0.110.0070.00915.60
7.0.100.0050.01015.68
7.0.90.0080.00815.79
7.0.80.0020.01215.61
7.0.70.0060.01015.62
7.0.60.0050.00915.72
7.0.50.0030.01115.84
7.0.40.0030.01114.52
7.0.30.0070.00714.57
7.0.20.0030.00914.42
7.0.10.0090.00414.48
7.0.00.0040.00914.43
5.6.400.0040.00414.37
5.6.390.0000.01614.32
5.6.380.0070.00414.27
5.6.370.0150.00014.27
5.6.360.0090.00614.40
5.6.350.0070.00714.12
5.6.340.0070.01014.21
5.6.330.0060.00314.40
5.6.320.0060.00614.47
5.6.310.0120.00614.51
5.6.300.0040.00814.75
5.6.290.0070.01014.53
5.6.280.0030.01014.30
5.6.270.0060.00314.49
5.6.260.0080.00414.34
5.6.250.0070.00714.26
5.6.240.0070.00314.41
5.6.230.0060.00314.19
5.6.220.0070.00414.05
5.6.210.0040.01114.20
5.6.200.0030.01014.24
5.6.190.0070.00714.36
5.6.180.0110.00714.52
5.6.170.0000.01514.23
5.6.160.0030.00514.14
5.6.150.0030.01014.27
5.6.140.0040.01114.40
5.6.130.0000.00814.10
5.6.120.0030.00914.50
5.6.110.0030.00814.44
5.6.100.0000.01213.94
5.6.90.0070.00714.26
5.6.80.0040.00914.50
5.6.70.0100.00314.25
5.6.60.0030.01014.35
5.6.50.0070.00714.39
5.6.40.0130.00014.15
5.6.30.0040.01214.15
5.6.20.0070.00714.16
5.6.10.0040.01114.33
5.6.00.0030.00514.27

preferences:
52.67 ms | 401 KiB | 5 Q