3v4l.org

run code in 300+ PHP versions simultaneously
<?php $refundDelays = ['66', 66, '0', 0, '', null, false, 'caca maca', ' ', '1.e2']; foreach($refundDelays as $value) { $b = ctype_digit($value); $c = is_int($value) || ctype_digit($value); var_dump($value); var_dump($b); var_dump($c); }
Output for git.master, git.master_jit, rfc.property-hooks
string(2) "66" bool(true) bool(true) Deprecated: ctype_digit(): Argument of type int will be interpreted as string in the future in /in/iCjss on line 5 int(66) bool(false) bool(true) string(1) "0" bool(true) bool(true) Deprecated: ctype_digit(): Argument of type int will be interpreted as string in the future in /in/iCjss on line 5 int(0) bool(false) bool(true) string(0) "" bool(false) bool(false) Deprecated: ctype_digit(): Argument of type null will be interpreted as string in the future in /in/iCjss on line 5 Deprecated: ctype_digit(): Argument of type null will be interpreted as string in the future in /in/iCjss on line 6 NULL bool(false) bool(false) Deprecated: ctype_digit(): Argument of type bool will be interpreted as string in the future in /in/iCjss on line 5 Deprecated: ctype_digit(): Argument of type bool will be interpreted as string in the future in /in/iCjss on line 6 bool(false) bool(false) bool(false) string(9) "caca maca" bool(false) bool(false) string(1) " " bool(false) bool(false) string(4) "1.e2" bool(false) bool(false)

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:
72.56 ms | 403 KiB | 8 Q