3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('invoice_duration_id' => 2, 'type' => 'invoice'); $array2 = array('invoice_duration_id' => 2, 'type' => '321'); $array3 = array('invoice_duration_id' => 2, 'type' => 'cod'); //$findDuplicate = array_diff_assoc( // $arr= $array1 + $array2 + $array3, // array_unique($arr) //); $arr= $array1->diff($array2)->count() === 0; var_dump($arr); die(); print_r($findDuplicate); //$result = $array1 + $array2; //var_dump($result);

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.5.10.0110.00616.85
8.5.00.0100.01120.11
8.4.150.0010.00114.05
8.4.140.0120.00917.74
8.4.130.0120.00717.86
8.4.120.0080.00924.22
8.4.110.0050.00518.07
8.4.100.0150.00518.75
8.4.90.0070.00220.60
8.4.80.0090.00618.61
8.4.70.0090.00618.07
8.4.60.0110.00918.68
8.4.50.0120.00818.79
8.4.40.0130.00717.69
8.4.30.0110.00720.82
8.4.20.0080.01219.63
8.4.10.0100.00619.67
8.3.280.0110.00818.28
8.3.270.0120.00716.58
8.3.260.0140.00516.71
8.3.250.0110.00918.73
8.3.240.0120.00617.05
8.3.230.0100.00716.50
8.3.220.0050.00219.08
8.3.210.0120.00416.77
8.3.200.0050.00316.61
8.3.190.0130.00416.91
8.3.180.0110.00817.04
8.3.170.0040.01420.41
8.3.160.0120.00616.63
8.3.150.0120.00617.08
8.3.140.0090.00616.68
8.3.130.0060.00318.38
8.3.120.0080.00018.73
8.3.110.0080.00020.94
8.3.100.0040.00416.66
8.3.90.0040.00426.77
8.3.80.0030.00618.30
8.3.70.0100.00618.52
8.3.60.0440.01125.92
8.3.50.0160.00625.92
8.3.40.0310.01025.92
8.3.30.0420.00725.92
8.3.20.0340.01425.92
8.3.10.0320.00625.92
8.3.00.0450.00325.92
8.2.290.0050.00420.32
8.2.280.0080.01020.59
8.2.270.0130.00616.87
8.2.260.0070.01016.75
8.2.250.0070.00018.62
8.2.240.0000.01116.96
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0110.00726.77
8.2.200.0100.00316.63
8.2.190.0110.00416.70
8.2.180.0320.01325.92
8.2.170.0400.00925.92
8.2.160.0380.01025.92
8.2.150.0480.00325.92
8.2.140.0500.01625.92
8.2.130.0410.00325.92
8.2.120.0390.01025.92
8.2.110.0320.01225.92
8.2.100.0260.01725.92
8.2.90.0350.01425.92
8.2.80.0420.00425.92
8.2.70.0430.00325.92
8.2.60.0350.00725.92
8.2.50.0400.00425.92
8.2.40.0320.01125.92
8.2.30.0260.01425.92
8.2.20.0290.00825.92
8.2.10.0290.01025.92
8.2.00.0240.00725.92
8.1.330.0140.00421.86
8.1.320.0090.00916.09
8.1.310.0100.00716.63
8.1.300.0090.00920.04
8.1.290.0060.00330.84
8.1.280.0320.01325.92
8.1.270.0310.01725.92
8.1.260.0320.01425.92
8.1.250.0390.01025.92
8.1.240.0380.00825.92
8.1.230.0290.00725.92
8.1.220.0250.01125.92
8.1.210.0310.00425.92
8.1.200.0360.00625.92
8.1.190.0250.01425.92
8.1.180.0300.01225.92
8.1.170.0370.00625.92
8.1.160.0310.01525.92
8.1.150.0320.01425.92
8.1.140.0270.01325.92
8.1.130.0300.00725.92
8.1.120.0240.01225.92
8.1.110.0330.01025.92
8.1.100.0390.00325.92
8.1.90.0270.01525.92
8.1.80.0270.00925.92
8.1.70.0280.01425.92
8.1.60.0400.00325.92
8.1.50.0380.00825.92
8.1.40.0380.00925.92
8.1.30.0350.01225.92
8.1.20.0480.01025.92
8.1.10.0430.01025.92
8.1.00.0350.00625.92

preferences:
34.48 ms | 403 KiB | 5 Q