3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(preg_match("/[^purchase]_total_amount/", "_total_amount"));
based on X7dbt
Output for 7.1.26 - 7.4.0
int(0)