3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait NoEsNada { public function nothing() { echo 'hola'; } } class Pablo { use NoEsNada; } function nada(NoEsNada $x) { $x->nothing(); } $pablo = new Pablo(); nada($pablo);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: nada(): Argument #1 ($x) must be of type NoEsNada, Pablo given, called in /in/DU1DG on line 25 and defined in /in/DU1DG:17 Stack trace: #0 /in/DU1DG(25): nada(Object(Pablo)) #1 {main} thrown in /in/DU1DG on line 17
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

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


preferences:
96.93 ms | 401 KiB | 8 Q