3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "\0"; echo "[".ord($a)."] "; echo "[".ord(utf8_encode($a))."] ";

preferences:
43.88 ms | 402 KiB | 5 Q