3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $πŸ‘‹ = 'Hello'; $🌎 = 'World'; function πŸ’¬($πŸ” , $πŸ”‘) { echo $πŸ” .' '.$πŸ”‘; }; πŸ’¬(πŸ‘‹."test" );
based on vZoaa
Output for 7.2.0 - 7.2.6
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.20
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 5.6.0 - 5.6.30, 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
Output for hhvm-3.15.4
Notice: Use of undefined constant πŸ‘‹ - assumed 'πŸ‘‹' in /in/bhWiU on line 10 Warning: πŸ’¬() expects exactly 2 parameters, 1 given in /in/bhWiU on line 7 Notice: Undefined variable: πŸ”‘ in /in/bhWiU on line 7 πŸ‘‹test