3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = 0; // проверьте $b = null; $b = "0"; $b = 0.2; .. try { if((float) $b === 0.0) throw new Exception('деление на ноль'); echo ($a / $b); } catch(Throwable $e) { echo $e->getMessage(); }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
163.45 ms | 2742 KiB | 8 Q