3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a+$b; session_start(); echo session_id();
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.4, 8.3.6
Warning: Undefined variable $a in /in/MDgma on line 2 Warning: Undefined variable $b in /in/MDgma on line 2 Warning: session_start(): Session cannot be started after headers have already been sent in /in/MDgma on line 3
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: Undefined variable $a in /in/MDgma on line 2 Warning: Undefined variable $b in /in/MDgma on line 2 Warning: session_start(): Session cannot be started after headers have already been sent in /in/MDgma on line 3
Output for 7.3.24 - 7.3.31, 7.4.12 - 7.4.33
Notice: Undefined variable: a in /in/MDgma on line 2 Notice: Undefined variable: b in /in/MDgma on line 2 Warning: session_start(): Cannot start session when headers already sent in /in/MDgma on line 3
Output for 7.3.33
84d1e394bca405c2d2c3451a5d1efb33
Output for 7.3.32
bb7bfafb0a03a9edcd8efbf4cbd32140
Output for 7.1.23
Notice: Undefined variable: a in /in/MDgma on line 2 Notice: Undefined variable: b in /in/MDgma on line 2 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/MDgma:2) in /in/MDgma on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/MDgma:2) in /in/MDgma on line 3 e1f463924dd3799cc0c6b77470c8b0b3

preferences:
104.42 ms | 402 KiB | 116 Q