3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = range(0, 10); $level = 9; $params = strtr(base64_encode(gzcompress(serialize($a), $level)), '+/=', '†‡•'); $className = 'SomeClass_' . $params; var_dump(strlen($params)); eval('class ' . $className . ' {}'); var_dump(new $className());
Output for 5.0.0 - 7.1.0
int(64) object(SomeClass_eNpLtDI0tKrOtDKwhmBDKDaCYmMoNoFiUyg2g2JzKLaAYksoNjSAELUAAv4aIA��)#1 (0) { }
Output for 4.3.0 - 4.4.9
int(64) object(someclass_enpltdi0tkrotdkwhmbdkdacymmonofiuyg2g2jzklaayksonjsaeluaav4aia��)(0) { }