3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( rha3pf, rha3pf, adfsasdf, asdfsad ); $uniqe = array_unique($array); print_r($uniqe);
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.6
Fatal error: Uncaught Error: Undefined constant "rha3pf" in /in/rkDub:4 Stack trace: #0 {main} thrown in /in/rkDub on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant rha3pf - assumed 'rha3pf' (this will throw an Error in a future version of PHP) in /in/rkDub on line 4 Warning: Use of undefined constant rha3pf - assumed 'rha3pf' (this will throw an Error in a future version of PHP) in /in/rkDub on line 5 Warning: Use of undefined constant adfsasdf - assumed 'adfsasdf' (this will throw an Error in a future version of PHP) in /in/rkDub on line 6 Warning: Use of undefined constant asdfsad - assumed 'asdfsad' (this will throw an Error in a future version of PHP) in /in/rkDub on line 7 Array ( [0] => rha3pf [2] => adfsasdf [3] => asdfsad )
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
Notice: Use of undefined constant rha3pf - assumed 'rha3pf' in /in/rkDub on line 4 Notice: Use of undefined constant rha3pf - assumed 'rha3pf' in /in/rkDub on line 5 Notice: Use of undefined constant adfsasdf - assumed 'adfsasdf' in /in/rkDub on line 6 Notice: Use of undefined constant asdfsad - assumed 'asdfsad' in /in/rkDub on line 7 Array ( [0] => rha3pf [2] => adfsasdf [3] => asdfsad )
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Notice: Use of undefined constant rha3pf - assumed 'rha3pf' in /in/rkDub on line 4 Notice: Use of undefined constant rha3pf - assumed 'rha3pf' in /in/rkDub on line 5 Notice: Use of undefined constant adfsasdf - assumed 'adfsasdf' in /in/rkDub on line 6 Notice: Use of undefined constant asdfsad - assumed 'asdfsad' in /in/rkDub on line 8 Array ( [0] => rha3pf [2] => adfsasdf [3] => asdfsad )

preferences:
133.4 ms | 402 KiB | 183 Q