3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['serialize_handler'=>'php_binary', 'hi'=>'test']; session_start($arr); var_dump($_SESSION);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: session_start(): Setting option "hi" failed in /in/dWob9 on line 4 Warning: session_start(): Session cookie cannot be sent after headers have already been sent (output started at /in/dWob9:4) in /in/dWob9 on line 4 Warning: session_start(): Session cache limiter cannot be sent after headers have already been sent (output started at /in/dWob9:4) in /in/dWob9 on line 4 array(0) { }
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: session_start(): Setting option 'hi' failed in /in/dWob9 on line 4 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/dWob9:4) in /in/dWob9 on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/dWob9:4) in /in/dWob9 on line 4 array(0) { }
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
array(0) { }

preferences:
210.67 ms | 402 KiB | 252 Q