3v4l.org

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