3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['64a', '1.42', '-43b', '+45', '2.34e4', '64'] as $id){ printf("%6s: is_numeric: %6s; ctype_digit: %6s\r\n", $id, b(is_numeric($id)), b(ctype_digit($id))); } function b($b){ return $b?'true':'false'; }
Output for git.master, git.master_jit, rfc.property-hooks
64a: is_numeric: false; ctype_digit: false 1.42: is_numeric: true; ctype_digit: false -43b: is_numeric: false; ctype_digit: false +45: is_numeric: true; ctype_digit: false 2.34e4: is_numeric: true; ctype_digit: false 64: is_numeric: true; ctype_digit: true

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:
58.43 ms | 401 KiB | 8 Q