3v4l.org

run code in 300+ PHP versions simultaneously
<?php version_compare(PHP_VERSION, "5.6.0", ">=") || die(); echo "mb_regex_encoding = ", mb_regex_encoding(), "\n\n"; mb_ereg_search_init("από το Άξιον Εστί", '.') or die("mb_ereg_search_init"); mb_ereg_search(); $r = mb_ereg_search_getregs(); for ($i = 1; $r; $i++) { printf("%3d = %s\n", $i, $r[0]); $r = mb_ereg_search_regs(); }
Output for 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.29, 8.0.0 - 8.0.19, 8.1.0 - 8.1.6
mb_regex_encoding = UTF-8 1 = α 2 = π 3 = ό 4 = 5 = τ 6 = ο 7 = 8 = Ά 9 = ξ 10 = ι 11 = ο 12 = ν 13 = 14 = Ε 15 = σ 16 = τ 17 = ί
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35

preferences:
57.14 ms | 411 KiB | 5 Q