3v4l.org

run code in 200+ PHP versions simultaneously
<?php try { foo(); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } try { new bar(); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } try { class foo { use bar; } } catch (Throwable $e) { echo $e->getMessage(), "\n"; }

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
Call to undefined function foo() Class 'bar' not found Fatal error: Trait 'bar' not found in /in/t25nN on line 14
Process exited with code 255.
Output for branch php-master+opcache
Call to undefined function foo() Class 'bar' not found Fatal error: Trait 'bar' not found in /in/t25nN on line 14
Process exited with code 255.
Output for branch php-master+jit
Call to undefined function foo() Class 'bar' not found Fatal error: Trait 'bar' not found in /in/t25nN on line 14
Process exited with code 255.

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page