3v4l.org

run code in 300+ PHP versions simultaneously
<?php $className = "SplFileInfo"; //$reflection = new ReflectionClass(); //$instance = $reflection->newInstanceWithoutConstructor(); $serializedString = sprintf( '%s:%d:"%s":0:{}', 'O', strlen($className), $className ); unserialize($serializedString);

preferences:
38.21 ms | 402 KiB | 5 Q