3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(PHP_INT_MIN => 42); var_dump( array_pop($a) ); var_dump($a);
Output for 7.0.0 - 7.2.8
int(42) array(0) { }
Output for 4.3.0 - 5.2.15, 5.2.17 - 5.6.28
Notice: Use of undefined constant PHP_INT_MIN - assumed 'PHP_INT_MIN' in /in/OgA5j on line 2 int(42) array(0) { }
Output for 5.2.16

Process exited with code 137.