3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c = pg_connect(); echo get_resource_type($c) . "\n";
Output for 7.1.0 - 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function pg_connect() in /in/QDWSP:3 Stack trace: #0 {main} thrown in /in/QDWSP on line 3
Process exited with code 255.
Output for hhvm-3.22.0
Warning: pg_connect() expects at least 1 parameter, 0 given in /in/QDWSP on line -1 Warning: get_resource_type() expects parameter 1 to be resource, null given in /in/QDWSP on line -1
Output for hhvm-3.18.5 - 3.21.3
Warning: pg_connect() expects at least 1 parameter, 0 given in /in/QDWSP on line 3 Warning: get_resource_type() expects parameter 1 to be resource, null given in /in/QDWSP on line 4
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function pg_connect() in /in/QDWSP on line 3
Process exited with code 255.