3v4l.org

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

preferences:
35.31 ms | 402 KiB | 5 Q