3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_start(); $foo= array(1); $_SESSION = $foo; //session_decode("i"); var_dump(session_encode);
based on uQoKH
Output for 7.2.0 - 7.3.0rc4
Warning: Use of undefined constant session_encode - assumed 'session_encode' (this will throw an Error in a future version of PHP) in /in/66K7a on line 8 string(14) "session_encode" Notice: Unknown: Skipping numeric key 0 in Unknown on line 0
Output for 5.6.0 - 7.1.20
Notice: Use of undefined constant session_encode - assumed 'session_encode' in /in/66K7a on line 8 string(14) "session_encode" Notice: Unknown: Skipping numeric key 0 in Unknown on line 0