3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; $innerkeyArray = ['{ "so info" : "By my signature below, I certify that all work has been performed to my satisfaction ", "updatedAt" : "2017-06-23T18:49:34 420 05:30", "formMetaData" : { "deviceMetaData" : { "freeDiskMb" : 563, "device" : "iPhone", "sdkRelease" : "10 2 1", "appVersion" : "4 8 7-S (161)", "appType" : "iOS", "totalMemoryMb" : 1048576000 }, "startFormTimeStamp" : "2017-06-23T18:49:25 374 05:30", "endFormTimeStamp" : "2017-06-23T18:49:34 422 05:30" }, "formId" : 147769, "cust first name" : "Shhs", "dispatchId" : 0, "formVersion" : 6, "cust last name" : "Hsh", "userId" : 110691, "userName" : "vishpatel9898@gmail com", "cust id" : "Jaja", "cust street" : "Hs", "displayReferenceValue" : "", "formName" : "vish - Sample-2", "sum subtotal" : 0, "sum total" : 0, "submissionId" : "f40b6089-018b-46ac-a57b-c1e96b1006e7", "cust company" : "Hsh", "sum other" : 0 }']; $array[$innerkeyArray] = ''; print_r($array);
Output for 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught TypeError: Cannot access offset of type array on array in /in/He8Di:36 Stack trace: #0 {main} thrown in /in/He8Di on line 36
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught TypeError: Cannot access offset of type array on array in /in/He8Di:36 Stack trace: #0 {main} thrown in /in/He8Di on line 36
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Fatal error: Uncaught TypeError: Illegal offset type in /in/He8Di:36 Stack trace: #0 {main} thrown in /in/He8Di on line 36
Process exited with code 255.
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Illegal offset type in /in/He8Di on line 36 Array ( )

preferences:
194.27 ms | 402 KiB | 291 Q