3v4l.org

run code in 300+ PHP versions simultaneously
1.<?php 2. 3.$input = 'Hello World'; 4. 5.interface Validatable { 6. static function validate($input); 7.} 8. 9.class Field implements Validatable { 10. static function validate($input) { 11. return $input; 12. } 13.} 14. 15.echo Field::validate($input);
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '3.' (T_DNUMBER) in /in/ta7M6 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_DNUMBER in /in/ta7M6 on line 5
Process exited with code 255.

preferences:
179.08 ms | 1395 KiB | 61 Q