3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
tysdty<?php $ar=array('asas','sasas','asa'); array_push($ar,"sanjeev"); var_dump($ar); $b=array_po($ar); var_dump($b);
based on Cbsil
Output for 7.0.0 - 7.1.0
tysdtyarray(4) { [0]=> string(4) "asas" [1]=> string(5) "sasas" [2]=> string(3) "asa" [3]=> string(7) "sanjeev" } Fatal error: Uncaught Error: Call to undefined function array_po() in /in/RopmD:5 Stack trace: #0 {main} thrown in /in/RopmD on line 5
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
tysdtyarray(4) { [0]=> string(4) "asas" [1]=> string(5) "sasas" [2]=> string(3) "asa" [3]=> string(7) "sanjeev" } Fatal error: Call to undefined function array_po() in /in/RopmD on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
tysdtyarray(4) { [0]=> string(4) "asas" [1]=> string(5) "sasas" [2]=> string(3) "asa" [3]=> string(7) "sanjeev" } Fatal error: Call to undefined function: array_po() in /in/RopmD on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
tysdtyarray(4) { [0]=> string(4) "asas" [1]=> string(5) "sasas" [2]=> string(3) "asa" [3]=> string(7) "sanjeev" } Fatal error: Call to undefined function: array_po() in /in/RopmD on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
tysdtyarray(4) { [0]=> string(4) "asas" [1]=> string(5) "sasas" [2]=> string(3) "asa" [3]=> string(7) "sanjeev" } Fatal error: Call to undefined function: array_po() in /in/RopmD on line 5