3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = array( '4158' => array( 'raw' => 'something', 'rendered' => 'something else', ), 'foo' => 'string', 'bar' => array( 'key' => 'value', 'baz' => 100, ), ); $two = array( '4158' => array( 'protected' => 'has a password', ), 'bar' => array( 'zzz' => 'yo', ), 'go' => 'Cubs', ); $temp = $one + (array) $two; var_dump( $temp );

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.4.20.0100.01017.50
8.4.10.0060.00319.51
8.3.150.0090.00920.60
8.3.140.0040.01116.64
8.3.130.0070.01116.43
8.3.120.0100.01018.99
8.3.110.0040.00420.94
8.3.100.0130.00616.63
8.3.90.0170.00026.77
8.3.80.0030.00616.66
8.3.70.0030.01216.72
8.3.60.0070.00716.63
8.3.50.0080.01121.14
8.3.40.0000.01918.70
8.3.30.0080.00818.72
8.3.20.0060.00318.59
8.3.10.0040.00421.67
8.3.00.0040.00421.77
8.2.260.0040.00420.29
8.2.250.0000.00716.36
8.2.240.0040.00418.74
8.2.230.0000.00822.58
8.2.220.0090.00624.06
8.2.210.0000.00826.77
8.2.200.0000.00916.38
8.2.190.0110.00716.75
8.2.180.0090.01325.92
8.2.170.0090.00622.96
8.2.160.0070.00722.19
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00019.43
8.2.120.0040.00426.35
8.2.110.0000.00920.99
8.2.100.0120.00017.84
8.2.90.0080.00017.91
8.2.80.0030.00618.57
8.2.70.0030.00617.80
8.2.60.0000.00818.22
8.2.50.0030.00518.10
8.2.40.0040.00420.61
8.2.30.0060.00320.95
8.2.20.0040.00418.06
8.2.10.0040.00418.05
8.2.00.0040.00417.74
8.1.310.0120.00616.75
8.1.300.0080.00018.59
8.1.290.0080.00430.84
8.1.280.0080.01125.92
8.1.270.0080.00021.97
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0190.00319.11
8.1.230.0000.01117.77
8.1.220.0060.00317.79
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.28
8.1.180.0040.00718.10
8.1.170.0030.00518.53
8.1.160.0000.00723.96
8.1.150.0000.00720.21
8.1.140.0070.00019.42
8.1.130.0050.00317.55
8.1.120.0040.00417.30
8.1.110.0030.00517.33
8.1.100.0050.00217.43
8.1.90.0000.00817.39
8.1.80.0000.00717.39
8.1.70.0030.00317.43
8.1.60.0040.00417.59
8.1.50.0030.00617.50
8.1.40.0000.00817.49
8.1.30.0040.00417.64
8.1.20.0040.00417.55
8.1.10.0000.00717.43
8.1.00.0000.00817.38
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0040.00416.76
8.0.260.0030.00517.19
8.0.250.0070.00016.93
8.0.240.0030.00316.96
8.0.230.0000.00716.95
8.0.220.0000.00616.78
8.0.210.0000.00716.89
8.0.200.0060.00016.89
8.0.190.0000.00716.82
8.0.180.0080.00016.95
8.0.170.0040.00416.82
8.0.160.0000.00716.87
8.0.150.0000.00716.89
8.0.140.0050.00516.88
8.0.130.0000.00613.27
8.0.120.0030.00516.79
8.0.110.0000.00716.69
8.0.100.0000.00716.71
8.0.90.0000.00716.89
8.0.80.0120.01216.78
8.0.70.0020.00516.92
8.0.60.0000.00716.92
8.0.50.0040.00416.88
8.0.30.0100.00817.07
8.0.20.0070.01217.40
8.0.10.0030.00517.05
8.0.00.0060.01716.45
7.4.330.0000.00515.55
7.4.320.0000.00616.36
7.4.300.0000.00616.51
7.4.290.0030.00316.60
7.4.280.0000.00716.44
7.4.270.0030.00316.52
7.4.260.0030.00316.66
7.4.250.0040.00416.51
7.4.240.0000.00716.63
7.4.230.0030.00316.54
7.4.220.0170.01116.63
7.4.210.0060.00916.54
7.4.200.0040.00416.41
7.4.160.0070.00916.32
7.4.150.0190.00617.40
7.4.140.0090.01017.86
7.4.130.0110.00716.45
7.4.120.0080.00916.39
7.4.110.0000.01916.61
7.4.100.0050.01416.54
7.4.90.0070.01016.41
7.4.80.0060.01319.39
7.4.70.0030.01816.51
7.4.60.0130.00316.38
7.4.50.0100.00716.30
7.4.40.0070.01016.19
7.4.30.0070.01316.32
7.4.00.0060.01014.82
7.3.330.0050.00213.13
7.3.320.0000.00612.93
7.3.310.0050.00216.24
7.3.300.0040.00416.11
7.3.290.0070.00816.22
7.3.280.0060.01216.16
7.3.270.0110.00617.40
7.3.260.0090.01016.24
7.3.250.0090.00816.19
7.3.240.0110.01016.41
7.3.230.0000.01716.39
7.3.210.0100.00616.33
7.3.200.0120.00616.29
7.3.190.0140.00816.19
7.3.180.0100.00716.33
7.3.170.0190.00316.44
7.3.160.0100.00716.34
7.3.120.0070.01014.32
7.3.110.0070.01114.70
7.3.100.0130.00314.66
7.3.90.0040.00814.75
7.3.80.0040.01114.94
7.3.70.0030.01014.66
7.3.60.0030.01014.62
7.3.50.0000.01614.49
7.3.40.0000.01014.59
7.3.30.0100.00714.65
7.3.20.0060.00316.31
7.3.10.0070.00416.63
7.3.00.0000.01716.71
7.2.330.0300.03516.39
7.2.320.0200.00316.29
7.2.310.0060.02016.29
7.2.300.0120.00616.22
7.2.290.0100.01016.31
7.2.250.0070.01114.84
7.2.240.0140.00715.05
7.2.230.0070.01015.12
7.2.220.0000.01415.20
7.2.210.0000.01514.98
7.2.200.0100.00315.14
7.2.190.0030.00914.85
7.2.180.0090.00614.87
7.2.170.0040.01114.69
7.2.60.0090.00316.92
7.1.330.0060.01015.66
7.1.320.0050.00815.54
7.1.310.0070.00715.84
7.1.300.0070.00715.66
7.1.290.0070.01015.51
7.1.280.0100.00315.74
7.1.270.0090.00615.86
7.1.260.0030.01015.79
7.1.200.0030.00615.65
7.1.70.0090.00016.96
7.1.60.0060.00916.84
7.1.00.0030.07322.28
7.0.200.0250.00714.51
7.0.120.0070.05722.10
7.0.110.0130.06022.07
7.0.100.0170.05022.04
7.0.90.0070.06321.98
7.0.80.0000.06322.04
7.0.70.0130.05722.18
7.0.60.0030.06022.04
7.0.50.0070.06022.07
7.0.40.0170.05022.07
7.0.30.0070.07722.12
7.0.20.0100.05322.10
7.0.10.0200.04322.05
7.0.00.0130.05022.01
5.6.270.0200.05321.07
5.6.260.0230.06020.79
5.6.250.0070.05720.88
5.6.240.0030.07020.85
5.6.230.0070.06021.00
5.6.220.0070.07021.01
5.6.210.0070.05720.68
5.6.200.0100.06021.04
5.6.190.0170.05020.76
5.6.180.0230.07721.03
5.6.170.0100.05721.00
5.6.160.0000.06320.86
5.6.150.0300.04321.03
5.6.140.0270.04721.04
5.6.130.0070.05720.80
5.6.120.0030.06320.93
5.6.110.0170.05321.00
5.6.100.0170.05321.01
5.6.90.0030.06321.06
5.6.80.0170.05020.46
5.6.70.0070.05320.45
5.6.60.0070.05320.40
5.6.50.0100.05320.20
5.6.40.0130.04720.19
5.6.30.0030.07320.33
5.6.20.0000.06720.20
5.6.10.0070.05720.15
5.6.00.0000.06320.08

preferences:
38.31 ms | 403 KiB | 5 Q