3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = ['user_fistname' => 'Jack', 'user_lastname' => 'Smith', 'user_address_1' => '123']; $array2 = ['contact_fistname' => 'Paul', 'contact_lastname' => 'Brown', 'contact_address_1' => '909']; //expected result 1 $data = [ 'firstname' => 'Jack', 'lastname' => 'Smith', 'address_1' => 123, ]; //expected result 2 $data = [ 'firstname' => 'Paul', 'lastname' => 'Brown', 'address_1' => 909, ];

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.0040.01218.18
8.3.50.0090.00918.19
8.3.40.0120.00618.73
8.3.30.0030.01018.46
8.3.20.0080.00018.99
8.3.10.0040.00421.69
8.3.00.0000.00720.58
8.2.180.0080.00616.50
8.2.170.0100.00722.96
8.2.160.0070.00722.05
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00018.09
8.2.120.0040.00426.35
8.2.110.0000.01019.09
8.2.100.0110.00018.09
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0060.00317.37
8.2.60.0030.00718.04
8.2.50.0040.00418.10
8.2.40.0040.00418.22
8.2.30.0040.00417.86
8.2.20.0040.00417.91
8.2.10.0040.00418.04
8.2.00.0050.00519.74
8.1.280.0130.00625.92
8.1.270.0070.00022.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.01122.14
8.1.230.0070.00320.45
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0080.00317.23
8.1.180.0030.00518.10
8.1.170.0000.00918.65
8.1.160.0040.00418.88
8.1.150.0070.00018.82
8.1.140.0050.00222.12
8.1.130.0060.00320.07
8.1.120.0000.00717.28
8.1.110.0070.00017.30
8.1.100.0080.00017.37
8.1.90.0030.00617.28
8.1.80.0040.00417.24
8.1.70.0000.00817.42
8.1.60.0000.00817.41
8.1.50.0020.00517.35
8.1.40.0040.00417.34
8.1.30.0050.00317.60
8.1.20.0000.01117.59
8.1.10.0040.00417.50
8.1.00.0040.00417.24
8.0.300.0030.00618.77
8.0.290.0040.00416.58
8.0.280.0000.00818.38
8.0.270.0070.00017.18
8.0.260.0030.00318.24
8.0.250.0030.00316.86
8.0.240.0030.00316.84
8.0.230.0000.00716.84
8.0.220.0000.00716.71
8.0.210.0030.00316.81
8.0.200.0030.00316.89
8.0.190.0000.00716.89
8.0.180.0000.00716.72
8.0.170.0050.00316.87
8.0.160.0000.00716.81
8.0.150.0120.00016.76
8.0.140.0040.00416.79
8.0.130.0000.00513.20
8.0.120.0040.00416.77
8.0.110.0040.00416.85
8.0.100.0000.00716.70
8.0.90.0040.00416.88
8.0.80.0060.00916.77
8.0.70.0050.00216.74
8.0.60.0040.00416.84
8.0.50.0060.00316.83
8.0.30.0090.00916.96
8.0.20.0090.01117.40
8.0.10.0000.00716.84
8.0.00.0050.01316.65
7.4.330.0060.00015.55
7.4.320.0030.00516.54
7.4.300.0030.00316.42
7.4.290.0070.00016.54
7.4.280.0000.00816.51
7.4.270.0000.00716.48
7.4.260.0030.00316.52
7.4.250.0000.00916.38
7.4.240.0000.00716.46
7.4.230.0050.00216.34
7.4.220.0000.00716.59
7.4.210.0100.00516.42
7.4.200.0030.00316.48
7.4.160.0100.00916.45
7.4.140.0110.00717.86
7.4.130.0040.01516.36
7.4.120.0100.00816.41
7.4.110.0040.01516.51
7.4.100.0070.01016.38
7.4.90.0110.00616.49
7.4.80.0060.00919.39
7.4.70.0140.00716.38
7.4.60.0070.01416.35
7.4.50.0110.00416.36
7.4.40.0090.00616.13
7.4.00.0080.00814.59
7.3.330.0000.00613.00
7.3.320.0030.00313.05
7.3.310.0000.00915.95
7.3.300.0000.00716.14
7.3.290.0030.00316.03
7.3.280.0050.00916.14
7.3.260.0090.00816.32
7.3.240.0100.00916.31
7.3.230.0130.00316.14
7.3.210.0090.01216.29
7.3.200.0080.00816.15
7.3.190.0030.01916.23
7.3.180.0060.00916.07
7.3.170.0060.01216.25
7.3.160.0030.01216.16
7.3.10.0090.00616.48
7.3.00.0080.00016.59
7.2.330.0070.01116.40
7.2.320.0090.00916.49
7.2.310.0100.00716.27
7.2.300.0050.01116.49
7.2.290.0040.01116.41
7.2.130.0000.01516.52
7.2.120.0100.00316.54
7.2.110.0070.00716.30
7.2.100.0050.00716.50
7.2.90.0060.00516.39
7.2.80.0040.01116.50
7.2.70.0100.00516.66
7.2.60.0060.00816.54
7.2.50.0040.01016.68
7.2.40.0050.00916.63
7.2.30.0080.00516.63
7.2.20.0040.00816.60
7.2.10.0080.00516.80
7.2.00.0050.01116.58
7.1.250.0090.00315.46
7.1.230.0120.00015.49
7.1.220.0080.00415.34
7.1.210.0060.00615.43
7.1.200.0060.00615.45
7.1.190.0030.01415.53
7.1.180.0090.00615.25
7.1.170.0000.01515.52
7.1.160.0090.00615.38
7.1.150.0120.00315.52
7.1.140.0080.00415.46
7.1.130.0060.00915.48
7.1.120.0060.00615.56
7.1.110.0060.00615.74
7.1.100.0140.00015.62
7.1.90.0040.01115.59
7.1.80.0110.00215.37
7.1.70.0080.00615.32
7.1.60.0080.00415.69
7.1.50.0070.00715.41
7.1.40.0040.00815.62
7.1.30.0040.00815.69
7.1.20.0100.00415.45
7.1.10.0040.01115.53
7.1.00.0040.00815.16
5.6.380.0060.00914.21

preferences:
35.73 ms | 400 KiB | 5 Q