3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = [1,2,3]; $b = array_pop($a); var_dump($b);
based on FlS30
Output for 7.2.0 - 7.4.1
int(3)