3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors',1); class c{ function c(){echo "c";} } $c= new c();

preferences:
46.88 ms | 412 KiB | 13 Q