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": [] }'); var_dump($new); $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' }");

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.40.0070.01018.54
8.3.30.0110.00718.55
8.3.20.0000.00919.16
8.3.10.0060.00323.48
8.3.00.0060.00320.64
8.2.170.0180.00022.96
8.2.160.0060.01222.12
8.2.150.0050.00524.18
8.2.140.0060.00324.66
8.2.130.0060.00319.64
8.2.120.0060.00326.35
8.2.110.0070.00421.18
8.2.100.0130.00317.78
8.2.90.0100.00017.47
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0060.00318.22
8.2.50.0040.00418.10
8.2.40.0080.00019.14
8.2.30.0090.00019.18
8.2.20.0040.00418.07
8.2.10.0030.00618.01
8.2.00.0050.00517.58
8.1.270.0000.00918.79
8.1.260.0080.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.96
8.1.230.0060.00619.16
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0100.00017.36
8.1.190.0060.00317.11
8.1.180.0060.00318.10
8.1.170.0050.00318.64
8.1.160.0030.00618.85
8.1.150.0040.00418.84
8.1.140.0080.00022.07
8.1.130.0080.00021.97
8.1.120.0000.00817.39
8.1.110.0030.00617.38
8.1.100.0040.00417.45
8.1.90.0040.00417.39
8.1.80.0000.00817.44
8.1.70.0030.00717.31
8.1.60.0040.00417.40
8.1.50.0000.00817.48
8.1.40.0050.00517.48
8.1.30.0060.00617.58
8.1.20.0000.00917.55
8.1.10.0080.00017.34
8.1.00.0030.00717.46
8.0.300.0000.00818.77
8.0.290.0050.00316.63
8.0.280.0050.00318.40
8.0.270.0000.00717.09
8.0.260.0070.00018.38
8.0.250.0000.00716.87
8.0.240.0000.00716.90
8.0.230.0000.00716.94
8.0.220.0000.01016.82
8.0.210.0050.00216.84
8.0.200.0000.00816.93
8.0.190.0080.00016.94
8.0.180.0040.00416.81
8.0.170.0000.00916.75
8.0.160.0040.00416.76
8.0.150.0070.00016.89
8.0.140.0080.00016.74
8.0.130.0030.00313.26
8.0.120.0060.00316.86
8.0.110.0000.00816.74
8.0.100.0030.00616.70
8.0.90.0000.00816.88
8.0.80.0090.00816.80
8.0.70.0060.00316.67
8.0.60.0030.00516.96
8.0.50.0070.00016.68
8.0.30.0160.00917.15
8.0.20.0090.01317.40
8.0.10.0000.00816.96
8.0.00.0170.00616.74
7.4.330.0000.00515.55
7.4.320.0000.00716.57
7.4.300.0090.00016.54
7.4.290.0030.00616.59
7.4.280.0030.00516.54
7.4.270.0030.00716.45
7.4.260.0040.00416.50
7.4.250.0040.00416.29
7.4.240.0070.00016.64
7.4.230.0040.00416.57
7.4.220.0000.00916.20
7.4.210.0120.00816.47
7.4.200.0000.00816.55
7.4.160.0120.01016.40
7.4.140.0140.01017.86
7.4.130.0070.01716.48
7.4.120.0110.01216.46
7.4.110.0140.01416.30
7.4.100.0100.01016.27
7.4.90.0060.01516.32
7.4.80.0160.00519.39
7.4.70.0050.01616.43
7.4.60.0060.01216.38
7.4.50.0130.00316.52
7.4.40.0080.01316.39
7.3.330.0050.00012.89
7.3.320.0060.00013.03
7.3.310.0100.00015.98
7.3.300.0000.00716.07
7.3.290.0030.00316.19
7.3.280.0150.00516.14
7.3.260.0140.00816.18
7.3.240.0100.01416.20
7.3.230.0070.01416.38
7.3.210.0070.01416.42
7.3.200.0110.01116.10
7.3.190.0100.01216.51
7.3.180.0150.00816.18
7.3.170.0170.00316.31
7.3.160.0160.00616.38
7.2.330.0140.00716.43
7.2.320.0170.00616.64
7.2.310.0060.01516.26
7.2.300.0110.01316.58
7.2.290.0110.00816.61

preferences:
55.68 ms | 400 KiB | 5 Q