3v4l.org

run code in 300+ PHP versions simultaneously
<?php $πŸ‘‹ = 'Hello'; $🌎 = 'World'; function πŸ’¬($πŸ” , $πŸ”‘) { echo $πŸ” .' '.$πŸ”‘; }; πŸ’¬(πŸ‘‹."test" );
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
Fatal error: Uncaught Error: Undefined constant "πŸ‘‹" in /in/bhWiU:10 Stack trace: #0 {main} thrown in /in/bhWiU on line 10
Process exited with code 255.
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 Fatal error: Uncaught Error: Undefined constant "πŸ‘‹" in /in/bhWiU:10 Stack trace: #0 {main} thrown in /in/bhWiU on line 10
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant πŸ‘‹ - assumed 'πŸ‘‹' (this will throw an Error in a future version of PHP) in /in/bhWiU on line 10 Fatal error: Uncaught ArgumentCountError: Too few arguments to function πŸ’¬(), 1 passed in /in/bhWiU on line 10 and exactly 2 expected in /in/bhWiU:6 Stack trace: #0 /in/bhWiU(10): πŸ’¬('\xF0\x9F\x91\x8Btest') #1 {main} thrown in /in/bhWiU on line 6
Process exited with code 255.
Output for 7.1.0 - 7.1.33
Notice: Use of undefined constant πŸ‘‹ - assumed 'πŸ‘‹' in /in/bhWiU on line 10 Fatal error: Uncaught ArgumentCountError: Too few arguments to function πŸ’¬(), 1 passed in /in/bhWiU on line 10 and exactly 2 expected in /in/bhWiU:6 Stack trace: #0 /in/bhWiU(10): πŸ’¬('\xF0\x9F\x91\x8Btest') #1 {main} thrown in /in/bhWiU on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Notice: Use of undefined constant πŸ‘‹ - assumed 'πŸ‘‹' in /in/bhWiU on line 10 Warning: Missing argument 2 for πŸ’¬(), called in /in/bhWiU on line 10 and defined in /in/bhWiU on line 6 Notice: Undefined variable: πŸ”‘ in /in/bhWiU on line 7 πŸ‘‹test

preferences:
171.15 ms | 402 KiB | 216 Q