3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1=array("table_no"=>"T2","min"=>"2"); $a2=array("table_no"=>T1); $result=array_diff($a1,$a2); print_r($result);
Output for 7.2.0
Warning: Use of undefined constant T1 - assumed 'T1' (this will throw an Error in a future version of PHP) in /in/SCghr on line 3 Array ( [table_no] => T2 [min] => 2 )
Output for 4.3.0 - 7.1.7
Notice: Use of undefined constant T1 - assumed 'T1' in /in/SCghr on line 3 Array ( [table_no] => T2 [min] => 2 )