3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class ZeroDayTechnique { public function key($action = 'get', $value = null) { static $hidden = null; switch ($action) { case 'get': return $hidden; case 'set': $hidden = $value; default: throw new Exception('Wut in da hell'); } } } $x = new ZeroDayTechnique; $x->key('set', random_bytes(32)); var_dump(bin2hex($x->key('get'))); var_dump($x);
Output for 7.2.0
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\x04\xD4v\x06\xF1\x82v2?N\xE8\x0E_\x161...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.1.10
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\xBF\xB1\xE4\xA2\xFEs__B\xE8(\xBD\x9E\r8...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.1.7
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\xFFt\xAE\xCA\e\e\xB5\x07\xC3\xDA\x18\xD5\x88bx...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.1.6
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\xF9\x8E\xB7\xC6\xE1,\xF9Y\xC8\xB5\x14\xA9\xAD\xFE\xAE...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.1.5
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\xEE\xD4\x9EKVA\xFC\xAD\xA4x\xA6\x98#\xEB\xB6...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.1.0
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\x0E\xE9\xEF\x07\x7F\x930\xCD\xAC\xCEL\xC6d[\xD9...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.0.20
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\e\xE8\x82\xA6\xF7A\xDE\x07)\xAC3\x93\xB9\xA9\xEC...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.0.6
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', 'V+\xEB\x7F\xCC\xB0R\xFB\x19_\x99\x932\xAD\xDA...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.0.5
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\xBC\xB0\xAB\x08\xC1&\x7F\xD6\xC3\x04\xCB\xEC\x9C\xC6\xE3...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.0.4
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', 'T\xDF\xFEf\\\x13\xD0\xCDX\x9D\xAD\xBB\x8C\xC7m...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.0.3
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\xFD,C\x94Oo\xE0.\xB9_\xF13\x86c@...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.0.2
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', 'a\xB3\xE4\xD9\x9B\x84\xCFg\xA2\xCA\xB4cB\xDAW...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.0.1
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\xE4#\x11\x8DA_\xC0\xDA\xAB<K\xC8P\x8E\xF3...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 7.0.0
Fatal error: Uncaught Exception: Wut in da hell in /in/t8MUv:12 Stack trace: #0 /in/t8MUv(19): ZeroDayTechnique->key('set', '\xB3\f1\xF2A\xA1\xA7\xE6\x99\xD8\x06\x9C<\x0EA...') #1 {main} thrown in /in/t8MUv on line 12
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/t8MUv on line 19
Process exited with code 255.