3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $supplied_nonce = array();//"abc"; $correct_nonce = "abc"; if (strcmp($supplied_nonce, $correct_nonce) == 0) { echo 'ok'; } else { echo 'Sorry, incorrect link'; }
based on Hv2hH
Output for 5.3.0 - 7.2.0
Warning: strcmp() expects parameter 1 to be string, array given in /in/doWCt on line 5 ok
Output for 4.3.0 - 5.2.17
Notice: Array to string conversion in /in/doWCt on line 5 Sorry, incorrect link