3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace React; class Exception extends \Exception { } use \Exception as Exception; class A { public function __construct(Exception $e) { } } new A(new namespace\Exception);
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.44, 5.5.24 - 5.5.28, 5.6.8 - 5.6.12
Fatal error: Cannot use Exception as Exception because the name is already in use in /in/mTf2g on line 8
Process exited with code 255.

preferences:
185.92 ms | 1395 KiB | 91 Q