3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Model { private $id; } $time = microtime(true); for ($i = 0; $i < 500000; $i++) { $model = new Model; $refl = new ReflectionClass('Model'); $property = $refl->getProperty('id'); $property->setAccessible(true); $property->setValue($model, 'test'); } $time = microtime(true) - $time; echo 'ReflectionClass took ' . number_format($time, 3) . " seconds\n";

Abusive script

This script was stopped while abusing our resources