3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $function = 'ftp_connect'; $function('localhost', 2222);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function ftp_connect() in /in/ZV6tt:4 Stack trace: #0 {main} thrown in /in/ZV6tt on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined function ftp_connect() in /in/ZV6tt on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.3 - 5.3.29
Output for 4.3.2
Warning: ftp_connect(): php_hostconnect: connect failed in /in/ZV6tt on line 4