3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o=new C1();/*this is OK, because C1 does not implement anything, it can be declared anywhere.*/ $o=new C2();/*this is NOT ok, because C2 implements something, it must be declared before being used.*/ class C1 /*implements nothing*/ { } class C2 implements Countable{ function count(){} }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
158.28 ms | 3330 KiB | 8 Q