@ 2015-03-03T15:07:29Z <?php
trait t1
{
}
trait t2 extends t1
{
}
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.27 , 7.1.0 - 7.1.13 , 7.2.0 - 7.2.1 Parse error: syntax error, unexpected 'extends' (T_EXTENDS), expecting '{' in /in/k33mV on line 6
Process exited with code 255 . Output for 5.4.1 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.30 Fatal error: A trait (t2) cannot extend a class. Traits can only be composed from other traits with the 'use' keyword. Error in /in/k33mV on line 7
Process exited with code 255 . Output for 5.4.0 Fatal error: A trait (t2) cannot extend a class in /in/k33mV on line 7
Process exited with code 255 . Output for 4.4.2 - 4.4.9 , 5.1.0 - 5.1.6 , 5.2.0 - 5.2.17 , 5.3.0 - 5.3.29 Parse error: syntax error, unexpected T_STRING in /in/k33mV on line 2
Process exited with code 255 . Output for 4.3.0 - 4.3.1 , 4.3.5 - 4.3.11 , 4.4.0 - 4.4.1 , 5.0.0 - 5.0.5 Parse error: parse error, unexpected T_STRING in /in/k33mV on line 2
Process exited with code 255 . Output for 4.3.2 - 4.3.4 Parse error: parse error in /in/k33mV on line 2
Process exited with code 255 . preferences:dark mode live preview
307.5 ms | 1395 KiB | 248 Q