3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo "1:"; print_r(ord('')); echo "\n2:"; print_r(empty('') ? 0 : ord('')); echo "\n3:"; print_r(('' === '' || '' === false) ? 0 : ord('')); echo "\n4:"; print_r(ord('0')); echo "\n5:"; print_r(empty('0') ? 0 : ord('0')); echo "\n6:"; print_r(('0' === '' || '' === false) ? 0 : ord('0'));
Output for git.master_jit, git.master
1: Deprecated: ord(): Providing an empty string is deprecated in /in/k9sJM on line 4 0 2:0 3:0 4:48 5:0 6:48

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.81 ms | 733 KiB | 4 Q