3v4l.org

run code in 200+ 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 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.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