3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=array(’a’=>’aaa’); $b=array(’b’=>’bbb’); if($a==$b) echo "С использованием == a=b<br>"; if($a===$b) echo "С использованием === a=b<br>";
based on qf9Xv
Output for 7.2.0
Warning: Use of undefined constant ’a’ - assumed '’a’' (this will throw an Error in a future version of PHP) in /in/D45HD on line 2 Warning: Use of undefined constant ’aaa’ - assumed '’aaa’' (this will throw an Error in a future version of PHP) in /in/D45HD on line 2 Warning: Use of undefined constant ’b’ - assumed '’b’' (this will throw an Error in a future version of PHP) in /in/D45HD on line 3 Warning: Use of undefined constant ’bbb’ - assumed '’bbb’' (this will throw an Error in a future version of PHP) in /in/D45HD on line 3
Output for 5.3.20 - 7.1.10
Notice: Use of undefined constant ’a’ - assumed '’a’' in /in/D45HD on line 2 Notice: Use of undefined constant ’aaa’ - assumed '’aaa’' in /in/D45HD on line 2 Notice: Use of undefined constant ’b’ - assumed '’b’' in /in/D45HD on line 3 Notice: Use of undefined constant ’bbb’ - assumed '’bbb’' in /in/D45HD on line 3