@ 2018-10-31T10:13:02Z <?php
$new = json_decode('{
"id": 100,
"owner": {
"id": 719,
"name": "test",
"logo": null,
"naf": "3202A",
"siren": "123465687",
"phone": "000000000",
"speEntity": {
"strKey": "01",
"label": "Entreprise priv\u00e9e"
},
"industry": {
"strKey": "01.agri _sylvi_ peche",
"label": "Agriculture - Sylviculture - P\u00eache"
},
"speIndustry": {
"strKey": "01.agri _sylvi_ peche.agri _sylvi_ peche",
"label": "Agriculture - Sylviculture - P\u00eache"
},
"owner": null,
"workspace": {},
"siege": {}
},
"workspace": {},
"dateCreate": null,
"dateModify": "2018-10-30T16:27:02+0100",
"serialNumber": "tgnpettinoto",
"gender": {
"strKey": "01",
"label": "Monsieur"
},
"firstName": "Tristan",
"lastName": "Pettinotti",
"birthName": "Pettinotti",
"birthDate": "2990-03-12T00:00:00+0100",
"birthCity": "Trois",
"birthDepartment": {
"strKey": "25",
"label": "Doubs"
},
"birthCountry": {
"strKey": "FO",
"label": "F\u00c9RO\u00c9ILES"
},
"codificationEU": {
"strKey": "03",
"label": "EEE"
},
"nationality": {
"strKey": "AD",
"label": "ANDORRE"
},
"primaryLanguage": {
"strKey": "fo",
"label": "F\u00e9ro\u00efen"
},
"secondLanguage": {
"strKey": "eo",
"label": "Esp\u00e9ranto"
},
"thirdLanguage": {
"strKey": "kw",
"label": "Cornique"
},
"status": null,
"identityDocs": [{
"id": "2f8cc29a-6901-4f87-8afc-7c1f031ebd5f",
"name": "Note de frais_TRISTAN - OCTOBRE.pdf"
}, {
"id": "a303bd5c-046d-48d3-909f-90ba02cf3595",
"name": "Note de frais_TRISTAN - OCTOBRE.pdf"
}, {
"id": "b802bb29-a22b-41fd-bfc2-762b756cab73",
"name": "Note de frais_TRISTAN - OCTOBRE.pdf"
}, {
"id": "bbeeb24b-3d45-43cb-b704-f429b376c152",
"name": "Note de frais_TRISTAN - OCTOBRE.pdf"
}, {
"id": "c65e0808-c68d-4f98-b26b-f051ce0da117",
"name": "remy.png"
}, {
"id": "dd67c6e9-496e-4e3e-a4f7-a3b363df3c98",
"name": "trollface.png"
}],
"ssNumber": "123456789123000",
"ssDocs": [],
"residStatus": {
"strKey": "01",
"label": "Oui"
},
"residDocs": [{
"id": "94afd016-36c6-4f0b-91ed-8a702b9e7e12",
"name": "Note de frais_TRISTAN - OCTOBRE.pdf"
}],
"driverLicences": ["a", "ed"],
"driverLicDocs": [],
"disabledWorker": false,
"disabledWorkDocs": [],
"adaptedWorker": false,
"adaptedWorkDocs": [{
"id": "3a1f0ac7-e99b-46b2-9e01-c2a36d67c8c7",
"name": "trollface.png"
}, {
"id": "d2c08512-33a8-4184-86a6-7648ef23ad8d",
"name": "6211-1532336916.jpg"
}, {
"id": "f44aacf7-d3ce-4e52-ba79-7a32ad768e66",
"name": "mergeme.jpg"
}],
"civilianStatus": {
"strKey": "viem",
"label": "Vie maritale"
},
"childCount": 305,
"chargedPersons": 0,
"personalAddress": "u10 Route des Maisons",
"personalAdditionalAddress": "1\u00e9me \u00e9tage",
"postalCode": "10250",
"personalCity": "Paris",
"personalCountry": {
"strKey": "FO",
"label": "F\u00c9RO\u00c9ILES"
},
"addressProofDocs": [{
"id": "e0f13e67-94b7-497b-beca-f42f15a28e77",
"name": "CSE.01.6.020_HdvimW.docx"
}],
"proShortPhone": "328",
"proMobile": "0600000012",
"proPhone": "1600000011",
"proEmail": "tristan9@zol.it",
"personalEmail": "tristan8@pro.fr",
"personalPhone": "0600000013",
"emergencyFirstName": "",
"emergencyLastName": "Tata",
"emergencyPhone": "065589870",
"contract": {},
"alerts": []
}');
$old = json_decode("{
id: '100',
gender: {
strKey: '02',
label: 'Madame'
},
firstName: 'Test',
lastName: 'Test Name',
birthName: 'Name',
nationality: {
strKey: 'FR',
label: 'FRANCE'
},
birthCity: 'Lyon',
birthDate: '1950-03-10T00:00:00+01:00',
birthDepartment: {
strKey: '38',
label: 'Isère'
},
birthCountry: {
strKey: 'FR',
label: 'FRANCE'
},
category: null,
codificationEU: {
strKey: '02',
label: 'UE'
},
primaryLanguage: {
strKey: 'fr',
label: 'Français'
},
secondLanguage: {
strKey: 'en',
label: 'Anglais'
},
thirdLanguage: {
strKey: 'it',
label: 'Italien'
},
residStatus: {
strKey: '01',
label: 'Oui'
},
disabledWorker: null,
adaptedWorker: true,
driverLicences: [
'b',
'a'
],
ssNumber: '1234567891234',
civilianStatus: {
strKey: 'viem',
label: 'Vie maritale'
},
serialNumber: 'TEST-4224-TE',
childCount: '2',
chargedPersons: null,
personalAddress: '1 Route du Chemin',
personalAdditionalAddress: '2éme étage',
postalCode: '38000',
personalCity: 'Grenoble',
personalCountry: {
strKey: 'FR',
label: 'FRANCE'
},
proShortPhone: '32',
proMobile: '0600000010',
proPhone: '0600000010',
proEmail: 'test@test.fr',
personalEmail: 'test@pro.fr',
personalPhone: '0600000010',
emergencyFirstName: 'Foo',
emergencyLastName: 'Bar',
emergencyPhone: '0600000020'
}");
var_dump($new, $old);
$merge = array_merge($old, $new);
var_dump($merge);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
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).
Version System time (s) User time (s) Memory (MiB) 8.3.6 0.010 0.010 18.24 8.3.5 0.019 0.003 17.91 8.3.4 0.010 0.007 18.97 8.3.3 0.010 0.007 18.88 8.3.2 0.004 0.004 19.35 8.3.1 0.000 0.009 23.66 8.3.0 0.003 0.006 20.68 8.2.18 0.008 0.008 16.35 8.2.17 0.013 0.003 22.96 8.2.16 0.007 0.007 21.95 8.2.15 0.000 0.009 24.18 8.2.14 0.006 0.003 24.66 8.2.13 0.003 0.006 19.64 8.2.12 0.008 0.000 26.35 8.2.11 0.007 0.004 20.92 8.2.10 0.009 0.009 17.78 8.2.9 0.006 0.003 17.63 8.2.8 0.000 0.009 17.97 8.2.7 0.006 0.003 17.79 8.2.6 0.004 0.004 18.16 8.2.5 0.006 0.003 18.10 8.2.4 0.003 0.007 19.20 8.2.3 0.003 0.006 19.13 8.2.2 0.004 0.004 18.02 8.2.1 0.004 0.004 18.11 8.2.0 0.006 0.003 17.67 8.1.28 0.014 0.007 25.92 8.1.27 0.003 0.006 18.88 8.1.26 0.008 0.004 26.35 8.1.25 0.008 0.000 28.09 8.1.24 0.007 0.004 22.20 8.1.23 0.004 0.008 17.42 8.1.22 0.006 0.003 17.74 8.1.21 0.006 0.003 18.77 8.1.20 0.003 0.006 17.25 8.1.19 0.009 0.000 17.10 8.1.18 0.009 0.000 18.10 8.1.17 0.003 0.006 18.66 8.1.16 0.009 0.000 18.89 8.1.15 0.005 0.003 18.80 8.1.14 0.008 0.000 22.07 8.1.13 0.006 0.003 22.01 8.1.12 0.000 0.009 17.46 8.1.11 0.000 0.008 17.30 8.1.10 0.003 0.006 17.38 8.1.9 0.005 0.003 17.41 8.1.8 0.005 0.002 17.37 8.1.7 0.003 0.007 17.44 8.1.6 0.000 0.008 17.44 8.1.5 0.009 0.000 17.44 8.1.4 0.008 0.000 17.50 8.1.3 0.003 0.007 17.57 8.1.2 0.006 0.003 17.74 8.1.1 0.009 0.000 17.51 8.1.0 0.009 0.003 17.51 8.0.30 0.005 0.003 18.77 8.0.29 0.000 0.008 16.63 8.0.28 0.000 0.007 18.27 8.0.27 0.003 0.006 17.19 8.0.26 0.003 0.003 18.27 8.0.25 0.000 0.007 16.96 8.0.24 0.003 0.003 16.97 8.0.23 0.007 0.000 17.00 8.0.22 0.000 0.011 16.83 8.0.21 0.004 0.004 16.89 8.0.20 0.000 0.007 16.98 8.0.19 0.006 0.003 16.96 8.0.18 0.006 0.003 16.97 8.0.17 0.006 0.003 16.86 8.0.16 0.000 0.008 16.93 8.0.15 0.003 0.005 16.92 8.0.14 0.008 0.000 16.89 8.0.13 0.007 0.000 13.31 8.0.12 0.000 0.008 16.81 8.0.11 0.004 0.004 16.77 8.0.10 0.004 0.004 16.92 8.0.9 0.004 0.004 16.70 8.0.8 0.004 0.014 16.85 8.0.7 0.000 0.008 16.89 8.0.6 0.006 0.003 16.97 8.0.5 0.000 0.007 16.76 8.0.3 0.009 0.012 17.29 8.0.2 0.015 0.011 17.40 8.0.1 0.000 0.008 17.01 8.0.0 0.019 0.003 16.77 7.4.33 0.003 0.003 15.55 7.4.32 0.003 0.003 16.45 7.4.30 0.005 0.003 16.57 7.4.29 0.000 0.007 16.54 7.4.28 0.009 0.000 16.48 7.4.27 0.007 0.003 16.54 7.4.26 0.004 0.007 16.41 7.4.25 0.000 0.007 16.40 7.4.24 0.003 0.005 16.45 7.4.23 0.000 0.007 16.64 7.4.22 0.000 0.008 16.30 7.4.21 0.003 0.015 16.56 7.4.20 0.000 0.007 16.53 7.4.16 0.013 0.008 16.43 7.4.14 0.018 0.007 17.86 7.4.13 0.008 0.016 16.40 7.4.12 0.012 0.010 16.43 7.4.11 0.011 0.013 16.61 7.4.10 0.010 0.010 16.51 7.4.9 0.012 0.009 16.42 7.4.8 0.012 0.012 19.39 7.4.7 0.006 0.018 16.34 7.4.6 0.008 0.016 16.49 7.4.5 0.010 0.010 16.59 7.4.4 0.020 0.000 16.64 7.3.33 0.003 0.003 13.20 7.3.32 0.003 0.003 13.16 7.3.31 0.009 0.000 16.29 7.3.30 0.000 0.007 16.21 7.3.29 0.004 0.004 16.25 7.3.28 0.006 0.012 16.21 7.3.26 0.015 0.008 16.29 7.3.24 0.016 0.009 16.24 7.3.23 0.006 0.017 16.56 7.3.21 0.021 0.000 16.24 7.3.20 0.000 0.025 16.30 7.3.19 0.016 0.003 16.38 7.3.18 0.013 0.008 16.32 7.3.17 0.020 0.008 16.27 7.3.16 0.018 0.011 16.36 7.2.33 0.010 0.010 16.60 7.2.32 0.022 0.007 16.57 7.2.31 0.015 0.008 16.21 7.2.30 0.016 0.008 16.22 7.2.29 0.012 0.010 16.37
preferences:dark mode live preview
38.46 ms | 400 KiB | 5 Q