3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $field_string = array(“camp_name”=>”gaurav”,”mobile”=>”9717476872”,”paramter1”=>”value1”,”paramter2”=>”value2”); print_r($field_string);
based on ietjc
Output for 7.2.0
Warning: Use of undefined constant “camp_name” - assumed '“camp_name”' (this will throw an Error in a future version of PHP) in /in/veVHO on line 3 Warning: Use of undefined constant ”gaurav” - assumed '”gaurav”' (this will throw an Error in a future version of PHP) in /in/veVHO on line 3 Warning: Use of undefined constant ”mobile” - assumed '”mobile”' (this will throw an Error in a future version of PHP) in /in/veVHO on line 3 Warning: Use of undefined constant ”9717476872” - assumed '”9717476872”' (this will throw an Error in a future version of PHP) in /in/veVHO on line 3 Warning: Use of undefined constant ”paramter1” - assumed '”paramter1”' (this will throw an Error in a future version of PHP) in /in/veVHO on line 3 Warning: Use of undefined constant ”value1” - assumed '”value1”' (this will throw an Error in a future version of PHP) in /in/veVHO on line 3 Warning: Use of undefined constant ”paramter2” - assumed '”paramter2”' (this will throw an Error in a future version of PHP) in /in/veVHO on line 3 Warning: Use of undefined constant ”value2” - assumed '”value2”' (this will throw an Error in a future version of PHP) in /in/veVHO on line 3 Array ( [“camp_name”] => ”gaurav” [”mobile”] => ”9717476872” [”paramter1”] => ”value1” [”paramter2”] => ”value2” )
Output for 5.3.22 - 7.1.10
Notice: Use of undefined constant “camp_name” - assumed '“camp_name”' in /in/veVHO on line 3 Notice: Use of undefined constant ”gaurav” - assumed '”gaurav”' in /in/veVHO on line 3 Notice: Use of undefined constant ”mobile” - assumed '”mobile”' in /in/veVHO on line 3 Notice: Use of undefined constant ”9717476872” - assumed '”9717476872”' in /in/veVHO on line 3 Notice: Use of undefined constant ”paramter1” - assumed '”paramter1”' in /in/veVHO on line 3 Notice: Use of undefined constant ”value1” - assumed '”value1”' in /in/veVHO on line 3 Notice: Use of undefined constant ”paramter2” - assumed '”paramter2”' in /in/veVHO on line 3 Notice: Use of undefined constant ”value2” - assumed '”value2”' in /in/veVHO on line 3 Array ( [“camp_name”] => ”gaurav” [”mobile”] => ”9717476872” [”paramter1”] => ”value1” [”paramter2”] => ”value2” )