@ 2013-12-06T09:39:57Z <?php
spl_autoload_register('loader');
function loader($className)
{
echo "loading $className\n";
if ($className == 'Wakeup')
eval('class Wakeup {public $b; public $e; function __construct(){$this->b = new B; $this->e = new E;} function __wakeup(){var_dump($this->b, $this->e);}}');
else if ($className == 'B')
eval('class B { function __wakeup(){echo "B::__wakeup\n"; //throw new ReactException;}}');
else if ($className == 'D')
eval('class D { function __wakeup(){echo "D::__wakeup\n";}}');
else if ($className == 'E')
eval('class E extends D { function __wakeup(){echo "E::__wakeup\n";}}');
else if ($className == 'ReactException')
eval('class ReactException extends Exception{}');
echo "loaded $className: " . class_exists($className, false) . "\n";
return true;
}
try
{
unserialize('O:6:"Wakeup":2:{s:1:"b";O:1:"B":0:{}s:1:"e";O:1:"E":0:{}}');
}
catch (Exception $e)
{
echo $e;
exit('success');
}
echo 'fail';
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 loading Wakeup
loaded Wakeup: 1
loading B
Parse error: Unclosed '{' in /in/Nett1(12) : eval()'d code on line 1
Process exited with code 255 . Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 loading Wakeup
loaded Wakeup: 1
loading B
Parse error: syntax error, unexpected end of file in /in/Nett1(12) : eval()'d code on line 1
Process exited with code 255 . Output for 5.4.11 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.28 loading Wakeup
loaded Wakeup: 1
loading B
Parse error: syntax error, unexpected end of file in /in/Nett1(12) : eval()'d code on line 1
loaded B:
loading E
loading D
loaded D: 1
loaded E: 1
E::__wakeup
object(__PHP_Incomplete_Class)#2 (1) {
["__PHP_Incomplete_Class_Name"]=>
string(1) "B"
}
object(E)#3 (0) {
}
fail Output for 5.4.0 - 5.4.10 loading Wakeup
loaded Wakeup: 1
loading B
Parse error: syntax error, unexpected end of file in /in/Nett1(12) : eval()'d code on line 1
loaded B:
loading E
loading D
loaded D: 1
loaded E: 1
E::__wakeup
object(__PHP_Incomplete_Class)#2 (1) {
["__PHP_Incomplete_Class_Name"]=>
string(1) "B"
}
object(E)#3 (0) {
}
failProcess exited with code 255 . Output for 5.1.1 - 5.1.6 , 5.2.0 - 5.2.17 , 5.3.0 - 5.3.29 loading Wakeup
loaded Wakeup: 1
loading B
Parse error: syntax error, unexpected $end in /in/Nett1(12) : eval()'d code on line 1
loaded B:
loading E
loading D
loaded D: 1
loaded E: 1
E::__wakeup
object(__PHP_Incomplete_Class)#2 (1) {
["__PHP_Incomplete_Class_Name"]=>
string(1) "B"
}
object(E)#3 (0) {
}
failProcess exited with code 255 . Output for 5.1.0 loading Wakeup
loaded Wakeup: 1
loading B
Process exited with code 137 . Output for 5.0.0 - 5.0.5 Fatal error: Call to undefined function spl_autoload_register() in /in/Nett1 on line 3
Process exited with code 255 . Output for 4.4.2 - 4.4.9 Parse error: syntax error, unexpected '{' in /in/Nett1 on line 25
Process exited with code 255 . Output for 4.3.0 - 4.3.1 , 4.3.5 - 4.3.11 , 4.4.0 - 4.4.1 Parse error: parse error, unexpected '{' in /in/Nett1 on line 25
Process exited with code 255 . Output for 4.3.2 - 4.3.4 Parse error: parse error in /in/Nett1 on line 25
Process exited with code 255 . preferences:dark mode live preview
279.09 ms | 401 KiB | 371 Q