3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(”2”=>”b”,“1”=>”a”,”3”=>”c”); $b = array(1=>”a”,3=>”c”,2=>”b”);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
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