3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = [1]; $two = [42]; $arr1 = ['k' => &$one]; $arr2 = ['k' => &$two]; var_dump(current($arr1['k']), current($arr2['k'])); array_replace_recursive($arr1, $arr2); var_dump(current($arr1['k']), current($arr2['k']));

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.0000.01516.50
8.3.60.0070.00716.38
8.3.50.0140.00521.19
8.3.40.0070.00718.73
8.3.30.0080.00618.77
8.3.20.0050.00220.34
8.3.10.0000.00721.76
8.3.00.0050.00323.65
8.2.190.0140.00416.63
8.2.180.0040.01116.38
8.2.170.0070.01022.96
8.2.160.0040.01120.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00819.76
8.2.120.0000.00826.16
8.2.110.0070.00422.07
8.2.100.0060.00617.79
8.2.90.0040.00418.16
8.2.80.0040.00417.97
8.2.70.0080.00417.25
8.2.60.0070.00417.80
8.2.50.0090.00018.07
8.2.40.0050.00520.34
8.2.30.0000.00919.44
8.2.20.0000.00717.73
8.2.10.0040.00418.04
8.2.00.0040.00417.93
8.1.280.0140.00325.92
8.1.270.0120.00423.91
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00522.02
8.1.230.0080.00320.88
8.1.220.0000.00917.79
8.1.210.0070.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.22
8.1.180.0080.00318.10
8.1.170.0000.00818.46
8.1.160.0000.00720.61
8.1.150.0050.00318.91
8.1.140.0050.00319.50
8.1.130.0000.00717.64
8.1.120.0050.00217.30
8.1.110.0050.00317.27
8.1.100.0000.00817.43
8.1.90.0000.00717.39
8.1.80.0000.00717.32
8.1.70.0040.00417.35
8.1.60.0080.00017.53
8.1.50.0040.00417.35
8.1.40.0040.00417.47
8.1.30.0040.00417.52
8.1.20.0070.00017.55
8.1.10.0080.00017.42
8.1.00.0000.00817.34
8.0.300.0000.00720.14
8.0.290.0070.00016.63
8.0.280.0030.00318.38
8.0.270.0030.00317.25
8.0.260.0060.00017.20
8.0.250.0000.00716.93
8.0.240.0030.00316.76
8.0.230.0050.00216.75
8.0.220.0040.00416.82
8.0.210.0070.00016.69
8.0.200.0030.00316.93
8.0.190.0080.00016.85
8.0.180.0060.00616.76
8.0.170.0000.00816.81
8.0.160.0030.00316.82
8.0.150.0040.00416.64
8.0.140.0070.00016.80
8.0.130.0000.00513.26
8.0.120.0080.00016.80
8.0.110.0040.00416.82
8.0.100.0080.00016.64
8.0.90.0040.00416.78
8.0.80.0110.00316.85
8.0.70.0070.00016.80
8.0.60.0070.00016.86
8.0.50.0040.00416.80
8.0.30.0060.01017.01
8.0.20.0090.00917.40
8.0.10.0000.00716.83
8.0.00.0120.00816.68
7.4.330.0050.00016.64
7.4.320.0030.00316.55
7.4.300.0060.00016.54
7.4.290.0070.00016.54
7.4.280.0040.00416.44
7.4.270.0030.00316.46
7.4.260.0000.00716.48
7.4.250.0040.00416.39
7.4.240.0040.00316.47
7.4.230.0040.00416.46
7.4.220.0160.01016.64
7.4.210.0060.01316.55
7.4.200.0000.00716.37
7.4.160.0070.01016.52
7.4.150.0100.01017.40
7.4.140.0120.01017.86
7.4.130.0050.01216.51
7.4.120.0110.00616.52
7.4.110.0100.00716.31
7.4.100.0190.00316.52
7.4.90.0160.00616.46
7.4.80.0090.01219.39
7.4.70.0100.01016.55
7.4.60.0150.00916.38
7.4.50.0060.01216.18
7.4.40.0060.01216.33
7.4.30.0130.00316.44
7.4.00.0120.00514.96
7.3.330.0000.00513.12
7.3.320.0030.00312.96
7.3.310.0030.00316.27
7.3.300.0030.00316.18
7.3.290.0110.00616.28
7.3.280.0100.00616.28
7.3.270.0160.00617.40
7.3.260.0070.01016.43
7.3.250.0110.00716.22
7.3.240.0110.00716.42
7.3.230.0100.00716.52
7.3.210.0100.00716.21
7.3.200.0100.00719.39
7.3.190.0070.01116.43
7.3.180.0130.00816.21
7.3.170.0070.01016.61
7.3.160.0030.01216.32
7.3.120.0040.01414.82
7.3.110.0060.01214.86
7.3.100.0090.00915.00
7.3.90.0040.01114.55
7.3.80.0100.00314.72
7.3.70.0030.00614.51
7.3.60.0100.00714.86
7.3.50.0030.01314.48
7.3.40.0030.00914.88
7.3.30.0030.01314.64
7.3.20.0060.00616.53
7.3.10.0090.00616.28
7.3.00.0040.00716.34
7.2.330.0090.00916.60
7.2.320.0130.00416.38
7.2.310.0130.00316.35
7.2.300.0090.01216.61
7.2.290.0050.01116.43
7.2.250.0110.00714.89
7.2.240.0100.01014.89
7.2.230.0040.01115.20
7.2.220.0030.00915.11
7.2.210.0030.00715.11
7.2.200.0060.00915.08
7.2.190.0110.00715.05
7.2.180.0030.01015.01
7.2.170.0090.00614.89
7.2.160.0060.00615.09
7.2.150.0070.01416.95
7.2.140.0110.01116.82
7.2.130.0080.00816.82
7.2.120.0030.00716.66
7.2.110.0030.01416.81
7.2.100.0030.01016.49
7.2.90.0120.00316.64
7.2.80.0060.00616.93
7.2.70.0070.01016.91
7.2.60.0030.01216.81
7.2.50.0040.01216.62
7.2.40.0110.00016.52
7.2.30.0000.01416.63
7.2.20.0040.01216.55
7.2.10.0030.00717.08
7.2.00.0000.01216.84
7.1.330.0030.01315.71
7.1.320.0070.00715.60
7.1.310.0030.00716.00
7.1.300.0070.01015.84
7.1.290.0080.00015.58
7.1.280.0000.01715.79
7.1.270.0080.00415.97
7.1.260.0100.00315.85
7.1.250.0080.00415.63
7.1.240.0070.00715.80
7.1.230.0030.00615.46
7.1.220.0030.01015.79
7.1.210.0140.00015.84
7.1.200.0030.01015.62
7.1.190.0090.00015.93
7.1.180.0000.01215.63
7.1.170.0060.00915.76
7.1.160.0140.00015.87
7.1.150.0100.00315.57
7.1.140.0030.00715.66
7.1.130.0070.00715.83
7.1.120.0000.01215.57
7.1.110.0060.00915.61
7.1.100.0050.01016.87
7.1.90.0070.01015.89
7.1.80.0070.01015.83
7.1.70.0080.00316.56
7.1.60.0090.00917.42
7.1.50.0070.00616.38
7.1.40.0150.00015.74
7.1.30.0030.01415.88
7.1.20.0040.01115.90
7.1.10.0030.01315.74
7.1.00.0080.04019.10
7.0.330.0080.00415.34
7.0.320.0100.00315.34
7.0.310.0000.01615.39
7.0.300.0060.00915.08
7.0.290.0070.00315.29
7.0.280.0070.00715.21
7.0.270.0050.00515.43
7.0.260.0040.00915.38
7.0.250.0120.00015.17
7.0.240.0040.00815.41
7.0.230.0090.00615.33
7.0.220.0030.01315.33
7.0.210.0100.00315.46
7.0.200.0020.00615.98
7.0.190.0060.01215.39
7.0.180.0060.00915.54
7.0.170.0060.01115.10
7.0.160.0070.01015.22
7.0.150.0060.01015.43
7.0.140.0100.00615.49
7.0.130.0080.00415.25
7.0.120.0000.01615.09
7.0.110.0040.01115.38
7.0.100.0040.01115.50
7.0.90.0030.00915.56
7.0.80.0000.00815.32
7.0.70.0060.00615.30
7.0.60.0200.04017.46
7.0.50.0030.04316.47
7.0.40.0100.04716.70
7.0.30.0120.03816.82
7.0.20.0120.05016.69
7.0.10.0070.04316.67
7.0.00.0080.02316.71
5.6.400.0140.00414.48
5.6.390.0110.00314.71
5.6.380.0090.00014.53
5.6.370.0000.01514.64
5.6.360.0070.00714.09
5.6.350.0000.01014.65
5.6.340.0030.01414.21
5.6.330.0070.00414.44
5.6.320.0100.00314.46
5.6.310.0060.00314.48
5.6.300.0070.01114.36
5.6.290.0000.01314.16
5.6.280.0020.02017.84
5.6.270.0040.01214.48
5.6.260.0070.00714.43
5.6.250.0110.00014.05
5.6.240.0050.00514.52
5.6.230.0100.00714.46
5.6.220.0090.00314.16
5.6.210.0050.04717.49
5.6.200.0090.03116.30
5.6.190.0070.05117.23
5.6.180.0280.03817.38
5.6.170.0160.04317.38
5.6.160.0050.02817.28
5.6.150.0090.04116.10
5.6.140.0080.04116.21
5.6.130.0030.04216.20
5.6.120.0080.03317.68
5.6.110.0060.03917.69
5.6.100.0050.03817.57
5.6.90.0070.03417.85
5.6.80.0060.03817.24
5.6.70.0080.00614.21
5.6.60.0060.00913.96
5.6.50.0000.01114.09
5.6.40.0060.00914.42
5.6.30.0080.00414.31
5.6.20.0060.00614.04
5.6.10.0120.00314.28
5.6.00.0100.00714.29
5.5.380.0040.00713.93
5.5.370.0110.00314.40
5.5.360.0110.00614.48
5.5.350.0100.03217.40
5.5.340.0080.04016.11
5.5.330.0070.04717.05
5.5.320.0180.03517.34
5.5.310.0160.03017.16
5.5.300.0030.03016.11
5.5.290.0170.03516.02
5.5.280.0170.03117.50
5.5.270.0080.02517.49
5.5.260.0050.03517.57
5.5.250.0080.03117.38
5.5.240.0030.04617.21
5.5.230.0070.00714.39
5.5.220.0060.00614.36
5.5.210.0040.01114.29
5.5.200.0000.01114.26
5.5.190.0030.00914.11
5.5.180.0030.01013.96
5.5.170.0080.00814.34
5.5.160.0030.00914.01
5.5.150.0060.00614.05
5.5.140.0000.01014.05
5.5.130.0040.00814.15
5.5.120.0070.00314.05
5.5.110.0040.01214.16
5.5.100.0100.00314.06
5.5.90.0110.00313.98
5.5.80.0080.00314.21
5.5.70.0100.00314.34
5.5.60.0090.00314.05
5.5.50.0000.01413.89
5.5.40.0070.00714.00
5.5.30.0070.00713.95
5.5.20.0080.00414.34
5.5.10.0030.00614.17
5.5.00.0030.00914.07

preferences:
37.61 ms | 401 KiB | 5 Q