3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $extra = []; var_dump(array_column($extra, "pacsfile_series_number")); $seriesMaxNum = max(array_unique(array_column($extra, "pacsfile_series_number"))) + 1;
based on 2RRl7
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(0) { } Warning: max(): Array must contain at least one element in /in/JiTmb on line 7