3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = '{"registerDetails":"{\"accountName\":\"gsyau\",\"accountNumber\":\"168454\",\"addressUser\":\"test\",\"bankId\":1,\"selectedCityId\":1,\"emergencyName\":\"test\",\"emergencyNumber\":\"0146542346\",\"education\":[{\"certificatePicture\":{\"body\":{},\"headers\":{\"namesAndValues\":[\"Content-Disposition\",\"form-data; name\\u003d\\\"certificateFile\\\"; filename\\u003d\\\"2022-11-29-21-18-35-294.jpg\\\"\"]}},\"grade\":\"test\",\"educationLvl\":\"Doctoral (PHD) or Equivalent\",\"endEducation\":\"Oct 2022\",\"id\":8,\"institutionName\":\"test\",\"isEducationExpandable\":false,\"startEducation\":\"Aug 2022\"}],\"skill\":[{\"id\":7},{\"id\":9}],\"work\":[{\"companyName\":\"test\",\"jobEndDate\":\"Oct 2022\",\"isCurrentlyWorkHere\":false,\"isJobExpand\":false,\"jobPosition\":\"testtest\",\"jobScope\":\"test\",\"jobTitle\":\"test\",\"jobStartDate\":\"Aug 2022\"}],\"phoneUser\":\"014654264\",\"postCode\":\"68100\",\"selectedStateId\":1}"}'; $fixed = preg_replace('/\\\\u003d\\\\\\\\(.*?)\\\\\\\\/', '=\\\\\\\\\\\\$1\\\\\\\\\\\\', $obj); var_export( json_decode(json_decode($fixed)->registerDetails) );
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
(object) array( 'accountName' => 'gsyau', 'accountNumber' => '168454', 'addressUser' => 'test', 'bankId' => 1, 'selectedCityId' => 1, 'emergencyName' => 'test', 'emergencyNumber' => '0146542346', 'education' => array ( 0 => (object) array( 'certificatePicture' => (object) array( 'body' => (object) array( ), 'headers' => (object) array( 'namesAndValues' => array ( 0 => 'Content-Disposition', 1 => 'form-data; name="certificateFile"; filename="2022-11-29-21-18-35-294.jpg"', ), ), ), 'grade' => 'test', 'educationLvl' => 'Doctoral (PHD) or Equivalent', 'endEducation' => 'Oct 2022', 'id' => 8, 'institutionName' => 'test', 'isEducationExpandable' => false, 'startEducation' => 'Aug 2022', ), ), 'skill' => array ( 0 => (object) array( 'id' => 7, ), 1 => (object) array( 'id' => 9, ), ), 'work' => array ( 0 => (object) array( 'companyName' => 'test', 'jobEndDate' => 'Oct 2022', 'isCurrentlyWorkHere' => false, 'isJobExpand' => false, 'jobPosition' => 'testtest', 'jobScope' => 'test', 'jobTitle' => 'test', 'jobStartDate' => 'Aug 2022', ), ), 'phoneUser' => '014654264', 'postCode' => '68100', 'selectedStateId' => 1, )

preferences:
107.43 ms | 411 KiB | 5 Q