3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(preg_match('/^|\d{1,2}$/', "7"));
based on HS6sk
Output for 7.1.0 - 7.2.26, 7.3.13, 7.4.1
int(1)
Output for 7.3.0 - 7.3.12, 7.4.0
int(2)