3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $queue = array("math","kmitl","eservice","ite"); $subject = array_pop($subject); print_r($queue); ?>
based on GZ8SL
Output for 5.3.0 - 7.1.0
Warning: array_pop() expects parameter 1 to be array, null given in /in/332Xa on line 3 Array ( [0] => math [1] => kmitl [2] => eservice [3] => ite )
Output for 4.3.2 - 5.2.17
Warning: array_pop(): The argument should be an array in /in/332Xa on line 3 Array ( [0] => math [1] => kmitl [2] => eservice [3] => ite )
Output for 4.3.0 - 4.3.1
Warning: array_pop() [http://www.php.net/function.array-pop]: The argument should be an array in /in/332Xa on line 3 Array ( [0] => math [1] => kmitl [2] => eservice [3] => ite )