3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = 'name=Nakka+Chandra&code=%22%27%5C%00&age=18&data[social][marks]=80&data[social][grade]=A%2B&data[english][marks]=100&data[english][grade]=B%2B'; parse_str($data, $data); var_export($data);
based on MHbJ8
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array ( 'name' => 'Nakka Chandra', 'code' => '"\'\\' . "\0" . '', 'age' => '18', 'data' => array ( 'social' => array ( 'marks' => '80', 'grade' => 'A+', ), 'english' => array ( 'marks' => '100', 'grade' => 'B+', ), ), )
Output for 4.3.0 - 4.3.8, 4.3.10 - 5.1.6, 5.2.1 - 5.3.29
array ( 'name' => 'Nakka Chandra', 'code' => '\\"\\\'\\\\\\0', 'age' => '18', 'data' => array ( 'social' => array ( 'marks' => '80', 'grade' => 'A+', ), 'english' => array ( 'marks' => '100', 'grade' => 'B+', ), ), )
Output for 5.2.0
array ( 'name' => 'Nakka Chandra', 'code' => '\\\\\\"\\\\\\\'\\\\\\\\\\\\0', 'age' => '18', 'data' => array ( 'social' => array ( 'marks' => '80', 'grade' => 'A+', ), 'english' => array ( 'marks' => '100', 'grade' => 'B+', ), ), )
Output for 4.3.9
array ( 'name' => 'Nakka Chandra', 'code' => '\\"\\\'\\\\\\', 'age' => '18', 'data' => array ( 'social' => array ( 'marks' => '80', 'grade' => 'A+', ), 'english' => array ( 'marks' => '100', 'grade' => 'B+', ), ), )