<?php ini_set('max_execution_time', 1); set_error_handler(null, E_ALL); class A { function __get($name) { return $name; } } global $a; $a = new A; function shutdown() { global $a; // Warning: Undefined property: A::$foo ... var_dump($a->foo); } register_shutdown_function('shutdown'); // Try to trigger "Fatal error: Maximum execution time of 1 second exceeded" // within the A::__get() method. for ($i = 0; $i < 100000000; $i++) { $a->foo; }
You have javascript disabled. You will not be able to edit any code.