3v4l.org

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