3v4l.org

run code in 300+ PHP versions simultaneously
<?php class milad{ public $aval=1; protected $dovom=2; private $sevpm=3; public $test=44; public function test(){ return time(); } } $milad=new milad; echo count($milad);
Output for 7.2.0 - 7.2.13, 7.3.0 - 7.3.1
Warning: count(): Parameter must be an array or an object that implements Countable in /in/se9ih on line 14 1
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25
1

preferences:
72.79 ms | 402 KiB | 52 Q