3v4l.org

run code in 300+ PHP versions simultaneously
<?php $base_image_array = [ ["product_image_one" => ""], ["product_image_two" => ""], ["product_image_three" => ""], ["product_image_four" => ""] ]; $db_product_images = [ ["product_image_one" => "../wp-content/themes/dosco/images/products_images/355_product_image_one.jpg"], ]; var_export(array_replace(...$base_image_array, ...$db_product_images));

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.0170.00318.55
8.3.50.0030.01018.39
8.3.40.0030.01120.33
8.3.30.0000.01418.58
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0000.00826.16
8.2.180.0100.01025.92
8.2.170.0120.00818.82
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0080.00320.31
8.2.100.0110.00017.78
8.2.90.0000.00817.91
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0030.00717.80
8.2.50.0080.00018.07
8.2.40.0000.00718.09
8.2.30.0000.00818.05
8.2.20.0040.00419.16
8.2.10.0000.00718.04
8.2.00.0050.00219.17
8.1.280.0120.00325.92
8.1.270.0000.00824.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00022.47
8.1.230.0090.00322.68
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0000.00917.35
8.1.180.0080.00018.10
8.1.170.0060.00318.62
8.1.160.0000.00718.90
8.1.150.0070.00018.58
8.1.140.0070.00017.38
8.1.130.0030.00318.77
8.1.120.0000.00717.45
8.1.110.0000.00717.41
8.1.100.0090.00917.14
8.1.90.0080.00817.26
8.1.80.0080.00817.24
8.1.70.0170.00016.92
8.1.60.0090.00617.08
8.1.50.0070.00517.25
8.1.40.0150.00016.94
8.1.30.0050.01017.28
8.1.20.0130.00216.81
8.1.10.0030.01416.99
8.1.00.0110.00617.15
8.0.300.0040.00419.82
8.0.290.0040.00416.63
8.0.280.0070.00018.25
8.0.270.0040.00416.79
8.0.260.0070.00018.39
8.0.250.0040.00416.77
8.0.240.0070.00016.76
8.0.230.0050.00616.80
8.0.220.0130.00016.48
8.0.210.0120.00415.98
8.0.200.0040.00816.57
8.0.190.0110.00416.21
8.0.180.0170.00016.57
8.0.170.0100.00216.56
8.0.160.0140.00016.62
8.0.150.0050.00816.49
8.0.140.0050.01116.56
8.0.130.0080.00516.13
8.0.120.0130.00016.83
8.0.110.0160.00016.30
8.0.100.0170.00016.67
8.0.90.0120.00316.44
8.0.80.0080.00316.59
8.0.70.0020.01016.40
8.0.60.0030.00916.47
8.0.50.0090.00516.32
8.0.30.0140.00016.35
8.0.20.0060.00616.70
8.0.10.0110.00316.75
7.4.330.0000.00415.55
7.4.320.0060.00016.43
7.4.300.0000.01116.22
7.4.290.0100.00216.21
7.4.280.0160.00415.90
7.4.270.0090.00915.60
7.4.260.0080.00316.14
7.4.250.0110.00216.21
7.4.240.0000.01116.07
7.4.230.0120.00016.24
7.4.220.0060.00615.48
7.4.210.0070.00515.63
7.4.200.0130.00016.02
7.4.190.0100.00516.25
7.4.180.0090.00516.11
7.4.160.0080.00515.99
7.4.150.0090.00315.94
7.4.140.0120.00316.19
7.4.130.0090.00215.72
7.4.120.0100.00316.04
7.4.110.0100.00315.84
7.4.100.0060.00616.12
7.4.90.0000.01315.87
7.4.80.0140.00016.25
7.4.70.0060.00315.98
7.4.60.0050.00815.80
7.4.50.0120.00015.93
7.4.40.0060.00416.28
7.4.30.0140.00016.23
7.4.20.0080.00616.22
7.4.10.0080.00515.97
7.4.00.0070.00715.98

preferences:
49.64 ms | 400 KiB | 5 Q