3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Number { private $int; public function __construct($number) { $this->int = $number; } public function getNumber() { return $this->int; } } $n = new Number(0583); echo $n->getNumber();
Output for 7.0.0 - 7.0.2
Parse error: Invalid numeric literal in /in/q4H0e on line 17
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
5

preferences:
177.27 ms | 1395 KiB | 37 Q