3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 500; $i++) { echo "$i => " . (ctype_digit($i) ? "Y" : "N") . "<br />"; }
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0 => N<br />1 => N<br />2 => N<br />3 => N<br />4 => N<br />5 => N<br />6 => N<br />7 => N<br />8 => N<br />9 => N<br />10 => N<br />11 => N<br />12 => N<br />13 => N<br />14 => N<br />15 => N<br />16 => N<br />17 => N<br />18 => N<br />19 => N<br />20 => N<br />21 => N<br />22 => N<br />23 => N<br />24 => N<br />25 => N<br />26 => N<br />27 => N<br />28 => N<br />29 => N<br />30 => N<br />31 => N<br />32 => N<br />33 => N<br />34 => N<br />35 => N<br />36 => N<br />37 => N<br />38 => N<br />39 => N<br />40 => N<br />41 => N<br />42 => N<br />43 => N<br />44 => N<br />45 => N<br />46 => N<br />47 => N<br />48 => Y<br />49 => Y<br />50 => Y<br />51 => Y<br />52 => Y<br />53 => Y<br />54 => Y<br />55 => Y<br />56 => Y<br />57 => Y<br />58 => N<br />59 => N<br />60 => N<br />61 => N<br />62 => N<br />63 => N<br />64 => N<br />65 => N<br />66 => N<br />67 => N<br />68 => N<br />69 => N<br />70 => N<br />71 => N<br />72 => N<br />73 => N<br />74 => N<br />75 => N<br />76 => N<br />77 => N<br />78 => N<br />79 => N<br />80 => N<br />81 => N<br />82 => N<br />83 => N<br />84 => N<br />85 => N<br />86 => N<br />87 => N<br />88 => N<br />89 => N<br />90 => N<br />91 => N<br />92 => N<br />93 => N<br />94 => N<br />95 => N<br />96 => N<br />97 => N<br />98 => N<br />99 => N<br />100 => N<br />101 => N<br />102 => N<br />103 => N<br />104 => N<br />105 => N<br />106 => N<br />107 => N<br />108 => N<br />109 => N<br />110 => N<br />111 => N<br />112 => N<br />113 => N<br />114 => N<br />115 => N<br />116 => N<br />117 => N<br />118 => N<br />119 => N<br />120 => N<br />121 => N<br />122 => N<br />123 => N<br />124 => N<br />125 => N<br />126 => N<br />127 => N<br />128 => N<br />129 => N<br />130 => N<br />131 => N<br />132 => N<br />133 => N<br />134 => N<br />135 => N<br />136 => N<br />137 => N<br />138 => N<br />139 => N<br />140 => N<br />141 => N<br />142 => N<br />143 => N<br />144 => N<br />145 => N<br />146 => N<br />147 => N<br />148 => N<br />149 => N<br />150 => N<br />151 => N<br />152 => N<br />153 => N<br />154 => N<br />155 => N<br />156 => N<br />157 => N<br />158 => N<br />159 => N<br />160 => N<br />161 => N<br />162 => N<br />163 => N<br />164 => N<br />165 => N<br />166 => N<br />167 => N<br />168 => N<br />169 => N<br />170 => N<br />171 => N<br />172 => N<br />173 => N<br />174 => N<br />175 => N<br />176 => N<br />177 => N<br />178 => N<br />179 => N<br />180 => N<br />181 => N<br />182 => N<br />183 => N<br />184 => N<br />185 => N<br />186 => N<br />187 => N<br />188 => N<br />189 => N<br />190 => N<br />191 => N<br />192 => N<br />193 => N<br />194 => N<br />195 => N<br />196 => N<br />197 => N<br />198 => N<br />199 => N<br />200 => N<br />201 => N<br />202 => N<br />203 => N<br />204 => N<br />205 => N<br />206 => N<br />207 => N<br />208 => N<br />209 => N<br />210 => N<br />211 => N<br />212 => N<br />213 => N<br />214 => N<br />215 => N<br />216 => N<br />217 => N<br />218 => N<br />219 => N<br />220 => N<br />221 => N<br />222 => N<br />223 => N<br />224 => N<br />225 => N<br />226 => N<br />227 => N<br />228 => N<br />229 => N<br />230 => N<br />231 => N<br />232 => N<br />233 => N<br />234 => N<br />235 => N<br />236 => N<br />237 => N<br />238 => N<br />239 => N<br />240 => N<br />241 => N<br />242 => N<br />243 => N<br />244 => N<br />245 => N<br />246 => N<br />247 => N<br />248 => N<br />249 => N<br />250 => N<br />251 => N<br />252 => N<br />253 => N<br />254 => N<br />255 => N<br />256 => Y<br />257 => Y<br />258 => Y<br />259 => Y<br />260 => Y<br />261 => Y<br />262 => Y<br />263 => Y<br />264 => Y<br />265 => Y<br />266 => Y<br />267 => Y<br />268 => Y<br />269 => Y<br />270 => Y<br />271 => Y<br />272 => Y<br />273 => Y<br />274 => Y<br />275 => Y<br />276 => Y<br />277 => Y<br />278 => Y<br />279 => Y<br />280 => Y<br />281 => Y<br />282 => Y<br />283 => Y<br />284 => Y<br />285 => Y<br />286 => Y<br />287 => Y<br />288 => Y<br />289 => Y<br />290 => Y<br />291 => Y<br />292 => Y<br />293 => Y<br />294 => Y<br />295 => Y<br />296 => Y<br />297 => Y<br />298 => Y<br />299 => Y<br />300 => Y<br />301 => Y<br />302 => Y<br />303 => Y<br />304 => Y<br />305 => Y<br />306 => Y<br />307 => Y<br />308 => Y<br />309 => Y<br />310 => Y<br />311 => Y<br />312 => Y<br />313 => Y<br />314 => Y<br />315 => Y<br />316 => Y<br />317 => Y<br />318 => Y<br />319 => Y<br />320 => Y<br />321 => Y<br />322 => Y<br />323 => Y<br />324 => Y<br />325 => Y<br />326 => Y<br />327 => Y<br />328 => Y<br />329 => Y<br />330 => Y<br />331 => Y<br />332 => Y<br />333 => Y<br />334 => Y<br />335 => Y<br />336 => Y<br />337 => Y<br />338 => Y<br />339 => Y<br />340 => Y<br />341 => Y<br />342 => Y<br />343 => Y<br />344 => Y<br />345 => Y<br />346 => Y<br />347 => Y<br />348 => Y<br />349 => Y<br />350 => Y<br />351 => Y<br />352 => Y<br />353 => Y<br />354 => Y<br />355 => Y<br />356 => Y<br />357 => Y<br />358 => Y<br />359 => Y<br />360 => Y<br />361 => Y<br />362 => Y<br />363 => Y<br />364 => Y<br />365 => Y<br />366 => Y<br />367 => Y<br />368 => Y<br />369 => Y<br />370 => Y<br />371 => Y<br />372 => Y<br />373 => Y<br />374 => Y<br />375 => Y<br />376 => Y<br />377 => Y<br />378 => Y<br />379 => Y<br />380 => Y<br />381 => Y<br />382 => Y<br />383 => Y<br />384 => Y<br />385 => Y<br />386 => Y<br />387 => Y<br />388 => Y<br />389 => Y<br />390 => Y<br />391 => Y<br />392 => Y<br />393 => Y<br />394 => Y<br />395 => Y<br />396 => Y<br />397 => Y<br />398 => Y<br />399 => Y<br />400 => Y<br />401 => Y<br />402 => Y<br />403 => Y<br />404 => Y<br />405 => Y<br />406 => Y<br />407 => Y<br />408 => Y<br />409 => Y<br />410 => Y<br />411 => Y<br />412 => Y<br />413 => Y<br />414 => Y<br />415 => Y<br />416 => Y<br />417 => Y<br />418 => Y<br />419 => Y<br />420 => Y<br />421 => Y<br />422 => Y<br />423 => Y<br />424 => Y<br />425 => Y<br />426 => Y<br />427 => Y<br />428 => Y<br />429 => Y<br />430 => Y<br />431 => Y<br />432 => Y<br />433 => Y<br />434 => Y<br />435 => Y<br />436 => Y<br />437 => Y<br />438 => Y<br />439 => Y<br />440 => Y<br />441 => Y<br />442 => Y<br />443 => Y<br />444 => Y<br />445 => Y<br />446 => Y<br />447 => Y<br />448 => Y<br />449 => Y<br />450 => Y<br />451 => Y<br />452 => Y<br />453 => Y<br />454 => Y<br />455 => Y<br />456 => Y<br />457 => Y<br />458 => Y<br />459 => Y<br />460 => Y<br />461 => Y<br />462 => Y<br />463 => Y<br />464 => Y<br />465 => Y<br />466 => Y<br />467 => Y<br />468 => Y<br />469 => Y<br />470 => Y<br />471 => Y<br />472 => Y<br />473 => Y<br />474 => Y<br />475 => Y<br />476 => Y<br />477 => Y<br />478 => Y<br />479 => Y<br />480 => Y<br />481 => Y<br />482 => Y<br />483 => Y<br />484 => Y<br />485 => Y<br />486 => Y<br />487 => Y<br />488 => Y<br />489 => Y<br />490 => Y<br />491 => Y<br />492 => Y<br />493 => Y<br />494 => Y<br />495 => Y<br />496 => Y<br />497 => Y<br />498 => Y<br />499 => Y<br />