3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = (int)"3 P"; echo $a;
based on 6LnQT
Output for 7.1.25 - 7.4.0rc2
3