3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = Array("asdfasdf"); if(!strcmp($test,"admin")){ echo "yes"; } else{ echo "no"; } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.14
Fatal error: Uncaught TypeError: strcmp(): Argument #1 ($string1) must be of type string, array given in /in/oogMd:4 Stack trace: #0 /in/oogMd(4): strcmp(Array, 'admin') #1 {main} thrown in /in/oogMd on line 4
Process exited with code 255.
Output for 7.0.23, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: strcmp() expects parameter 1 to be string, array given in /in/oogMd on line 4 yes
Output for 4.3.6
Notice: Array to string conversion in /in/oogMd on line 4 no

preferences:
76.67 ms | 408 KiB | 5 Q