3v4l.org

run code in 200+ PHP versions simultaneously
<?php namespace PHPUnit\Framework { class TestCase { } } namespace App { class SomeTestCase extends PHPUnit\Framework\TestCase { } $someTestCase = new App\SomeTestCase; }
based on o3bEY
Output for 7.3.0 - 7.3.10, 7.4.0rc2 - 7.4.0rc4
Fatal error: Uncaught Error: Class 'App\PHPUnit\Framework\TestCase' not found in /in/5Sjjh:12 Stack trace: #0 {main} thrown in /in/5Sjjh on line 12
Process exited with code 255.
Output for 7.1.25 - 7.2.23, 7.4.0alpha1 - 7.4.0rc1
Fatal error: Class 'App\PHPUnit\Framework\TestCase' not found in /in/5Sjjh on line 12
Process exited with code 255.