3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { public $test1; public $test2; protected $test3; private $test4; public function method1() {} public function method2() {} protected function method3() {} private function method4() {} } echo count( new test );
based on dKcAL
Output for 7.2.0 - 7.3.0beta1
Warning: count(): Parameter must be an array or an object that implements Countable in /in/boV7I on line 14 1
Output for 5.6.0 - 7.1.20
1