3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(preg_split('//u', 'abcåäö', 0, PREG_SPLIT_NO_EMPTY));
Output for 5.6.0, 7.3.0 - 7.3.33, 7.4.0 - 7.4.30, 8.0.0 - 8.0.22, 8.1.0 - 8.1.9
array ( 0 => 'a', 1 => 'b', 2 => 'c', 3 => 'å', 4 => 'ä', 5 => 'ö', )

preferences:
64.26 ms | 898 KiB | 14 Q