3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.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