3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors', 1); try { $res = array_shift(explode('.', 'Bundle-Ether12.100')); echo "OK RESULT: "; var_export($res); echo PHP_EOL; } catch (Throwable $e) { echo "THROWN: ", get_class($e), ": ", $e->getMessage(), PHP_EOL; }

preferences:
36.82 ms | 487 KiB | 6 Q