3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = <<<EOD data:text/base64:MSwgMSwgMSwgMSwgJ1l1bGlhbmEgQXJyZWRvbmRvJywgJ01pIHJhesOzbiBzb2NpYWwnLCAnc250QHNudC5zbnQnLCAnYW9lYW9lYW9lMScsICdhdmF0YXJfNTY2MjdlYjdlYTE3NC5wbmcnLCAnQ1VJSDkwMDQxOVJDNCcsICcyMDE1LTEyLTA5JywgJzIwMTUtMTItMjMnLCAnMjAxNS0xMi0wMScsICdTWVNURU0tQ1NWJw0KMSwgMSwgMSwgMSwgJ0VkdWFyZG8gZGUgbGEgQ3J1eicsICdNaSByYXrDs24gc29jaWFsJywgJ3NudEBzbnQuc250JywgJ2FvZWFvZWFvZTEnLCAnYXZhdGFyXzU2NjI3ZWI3ZWExNzQucG5nJywgJ0NVSUg5MDA0MTlSQzYnLCAnMjAxNS0xMi0wOScsICcyMDE1LTEyLTIzJywgJzIwMTUtMTItMDEnLCAnU1lTVEVNLUNTVic= EOD; $b64 = $request->input('file'); $pos = strpos($b64, ';'); if($pos !== false){ $b64 = base64_decode(preg_replace('#^data:text/\w+;base64,#i', '', $b64)); } $array = str_getcsv($b64);
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: request in /in/DonjA on line 5 Fatal error: Uncaught Error: Call to a member function input() on null in /in/DonjA:5 Stack trace: #0 {main} thrown in /in/DonjA on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: request in /in/DonjA on line 5 Fatal error: Uncaught Error: Call to a member function input() on unknown in /in/DonjA:5 Stack trace: #0 {main} thrown in /in/DonjA on line 5
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: request in /in/DonjA on line 5 Fatal error: Call to a member function input() on null in /in/DonjA on line 5
Process exited with code 255.
Output for 5.3.20 - 5.5.35
Notice: Undefined variable: request in /in/DonjA on line 5 Fatal error: Call to a member function input() on a non-object in /in/DonjA on line 5
Process exited with code 255.