3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class = '1.2.3.4.5.6'; $base = explode(".", $class)[0]; echo $base;

preferences:
56.79 ms | 404 KiB | 5 Q