3v4l.org

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