3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* class ClaseNoCargable { public function __toString(){ return "se pudo cargar la clase"; } } */ spl_autoload_register(function ($clase) { echo "Intentando cargar $clase...\n"; throw new Exception("[ERROR] Imposible cargar $clase ·_·"); }); try { $obj = new ClaseNoCargable(); echo $obj; } catch (Exception $e) { echo $e->getMessage(), "\n"; }
based on HrP2F
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0alpha1
Intentando cargar ClaseNoCargable... [ERROR] Imposible cargar ClaseNoCargable ·_·