3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = “silly”; var_dump( !str_cmp($s) == 0); // true
Output for 7.2.0
Warning: Use of undefined constant “silly” - assumed '“silly”' (this will throw an Error in a future version of PHP) in /in/b7vfm on line 3 Fatal error: Uncaught Error: Call to undefined function str_cmp() in /in/b7vfm:4 Stack trace: #0 {main} thrown in /in/b7vfm on line 4
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant “silly” - assumed '“silly”' in /in/b7vfm on line 3 Fatal error: Uncaught Error: Call to undefined function str_cmp() in /in/b7vfm:4 Stack trace: #0 {main} thrown in /in/b7vfm on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.6.28
Notice: Use of undefined constant “silly” - assumed '“silly”' in /in/b7vfm on line 3 Fatal error: Call to undefined function str_cmp() in /in/b7vfm on line 4
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/b7vfm on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant “silly” - assumed '“silly”' in /in/b7vfm on line 3 Fatal error: Call to undefined function: str_cmp() in /in/b7vfm on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant “silly” - assumed '“silly”' in /in/b7vfm on line 3 Fatal error: Call to undefined function: str_cmp() in /in/b7vfm on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant “silly” - assumed '“silly”' in /in/b7vfm on line 3 Fatal error: Call to undefined function: str_cmp() in /in/b7vfm on line 4