3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

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.0140.00718.32
8.3.50.0100.01317.81
8.3.40.0140.00318.71
8.3.30.0100.00718.54
8.3.20.0060.00319.04
8.3.10.0090.00023.64
8.3.00.0090.00020.45
8.2.180.0130.00316.63
8.2.170.0160.00322.96
8.2.160.0110.00422.13
8.2.150.0090.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00019.70
8.2.120.0080.00026.35
8.2.110.0070.00320.56
8.2.100.0100.00617.66
8.2.90.0000.00817.50
8.2.80.0080.00017.97
8.2.70.0080.00017.80
8.2.60.0050.00318.09
8.2.50.0060.00318.10
8.2.40.0060.00319.27
8.2.30.0000.00819.20
8.2.20.0000.00818.07
8.2.10.0040.00417.89
8.2.00.0040.00417.51
8.1.280.0100.01025.92
8.1.270.0060.00318.88
8.1.260.0110.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.97
8.1.230.0120.00019.22
8.1.220.0070.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00917.22
8.1.190.0000.00917.22
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0030.00518.79
8.1.150.0040.00418.75
8.1.140.0040.00422.06
8.1.130.0040.00421.96
8.1.120.0040.00417.28
8.1.110.0040.00417.29
8.1.100.0040.00417.37
8.1.90.0080.00017.29
8.1.80.0050.00317.29
8.1.70.0070.00317.29
8.1.60.0030.00617.46
8.1.50.0030.00617.40
8.1.40.0060.00317.48
8.1.30.0000.01217.43
8.1.20.0000.00917.57
8.1.10.0000.00917.38
8.1.00.0040.00817.44
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.52
8.0.270.0000.00717.20
8.0.260.0070.00018.39
8.0.250.0040.00416.80
8.0.240.0000.00716.79
8.0.230.0040.00416.92
8.0.220.0050.00516.79
8.0.210.0050.00216.85
8.0.200.0000.00716.89
8.0.190.0040.00416.93
8.0.180.0080.00016.91
8.0.170.0000.01116.91
8.0.160.0000.00816.89
8.0.150.0000.00716.79
8.0.140.0040.00416.85
8.0.130.0000.00613.20
8.0.120.0000.00916.83
8.0.110.0000.00816.71
8.0.100.0050.00316.72
8.0.90.0040.00416.90
8.0.80.0050.01616.88
8.0.70.0000.00816.89
8.0.60.0050.00316.74
8.0.50.0030.00616.69
8.0.30.0140.01017.06
8.0.20.0090.01617.40
8.0.10.0090.00017.05
8.0.00.0130.01116.79
7.4.330.0000.00515.55
7.4.320.0040.00416.55
7.4.300.0000.00716.57
7.4.290.0070.00016.36
7.4.280.0040.00416.44
7.4.270.0060.00316.59
7.4.260.0070.00016.46
7.4.250.0080.00016.46
7.4.240.0040.00416.47
7.4.230.0040.00416.55
7.4.220.0040.00416.54
7.4.210.0100.00916.48
7.4.200.0000.00716.34
7.4.160.0160.00616.41
7.4.140.0120.01317.86
7.4.130.0150.00616.36
7.4.120.0160.00816.40
7.4.110.0190.00616.49
7.4.100.0110.00816.38
7.4.90.0190.01016.37
7.4.80.0120.00919.39
7.4.70.0070.01316.45
7.4.60.0170.00316.37
7.4.50.0100.00716.45
7.4.40.0160.00416.36
7.3.330.0030.00312.91
7.3.320.0030.00313.13
7.3.310.0060.00316.00
7.3.300.0000.00716.05
7.3.290.0030.00315.99
7.3.280.0090.01216.17
7.3.260.0130.00916.38
7.3.240.0090.01416.25
7.3.230.0100.01216.24
7.3.210.0090.01216.45
7.3.200.0090.01316.61
7.3.190.0170.00316.57
7.3.180.0090.00916.46
7.3.170.0130.00816.11
7.3.160.0120.00916.41
7.2.330.0070.01516.53
7.2.320.0160.01216.51
7.2.310.0040.01816.21
7.2.300.0130.00916.31
7.2.290.0130.01316.43

preferences:
29.05 ms | 401 KiB | 5 Q