3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('foo', 'bar'); "$a" == 'Array'; (string)$a == 'Array'; $a . '' == 'Array'; is_null(pg_escape_string($a)); ?>
Output for 7.0.0 - 7.3.0rc4
Notice: Array to string conversion in /in/HGKi0 on line 4 Notice: Array to string conversion in /in/HGKi0 on line 5 Notice: Array to string conversion in /in/HGKi0 on line 6 Fatal error: Uncaught Error: Call to undefined function pg_escape_string() in /in/HGKi0:8 Stack trace: #0 {main} thrown in /in/HGKi0 on line 8
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Notice: Array to string conversion in /in/HGKi0 on line 4 Notice: Array to string conversion in /in/HGKi0 on line 5 Notice: Array to string conversion in /in/HGKi0 on line 6 Fatal error: Call to undefined function pg_escape_string() in /in/HGKi0 on line 8
Process exited with code 255.
Output for 5.0.0 - 5.3.29
Fatal error: Call to undefined function pg_escape_string() in /in/HGKi0 on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Array to string conversion in /in/HGKi0 on line 5 Fatal error: Call to undefined function: pg_escape_string() in /in/HGKi0 on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Array to string conversion in /in/HGKi0 on line 5 Fatal error: Call to undefined function: pg_escape_string() in /in/HGKi0 on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Array to string conversion in /in/HGKi0 on line 5 Fatal error: Call to undefined function: pg_escape_string() in /in/HGKi0 on line 8