3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(”2”=>”b”,“1”=>”a”,”3”=>”c”); $b = array(1=>”a”,3=>”c”,2=>”b”);
Output for 7.2.0 - 7.3.0rc4
Warning: Use of undefined constant ”2” - assumed '”2”' (this will throw an Error in a future version of PHP) in /in/0kaHp on line 2 Warning: Use of undefined constant ”b” - assumed '”b”' (this will throw an Error in a future version of PHP) in /in/0kaHp on line 2 Warning: Use of undefined constant “1” - assumed '“1”' (this will throw an Error in a future version of PHP) in /in/0kaHp on line 2 Warning: Use of undefined constant ”a” - assumed '”a”' (this will throw an Error in a future version of PHP) in /in/0kaHp on line 2 Warning: Use of undefined constant ”3” - assumed '”3”' (this will throw an Error in a future version of PHP) in /in/0kaHp on line 2 Warning: Use of undefined constant ”c” - assumed '”c”' (this will throw an Error in a future version of PHP) in /in/0kaHp on line 2 Warning: Use of undefined constant ”a” - assumed '”a”' (this will throw an Error in a future version of PHP) in /in/0kaHp on line 3 Warning: Use of undefined constant ”c” - assumed '”c”' (this will throw an Error in a future version of PHP) in /in/0kaHp on line 3 Warning: Use of undefined constant ”b” - assumed '”b”' (this will throw an Error in a future version of PHP) in /in/0kaHp on line 3
Output for 4.3.0 - 7.1.20
Notice: Use of undefined constant ”2” - assumed '”2”' in /in/0kaHp on line 2 Notice: Use of undefined constant ”b” - assumed '”b”' in /in/0kaHp on line 2 Notice: Use of undefined constant “1” - assumed '“1”' in /in/0kaHp on line 2 Notice: Use of undefined constant ”a” - assumed '”a”' in /in/0kaHp on line 2 Notice: Use of undefined constant ”3” - assumed '”3”' in /in/0kaHp on line 2 Notice: Use of undefined constant ”c” - assumed '”c”' in /in/0kaHp on line 2 Notice: Use of undefined constant ”a” - assumed '”a”' in /in/0kaHp on line 3 Notice: Use of undefined constant ”c” - assumed '”c”' in /in/0kaHp on line 3 Notice: Use of undefined constant ”b” - assumed '”b”' in /in/0kaHp on line 3