3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i=0; $i<258; $i++) { var_dump($i); var_dump(chr($i)); echo "\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
int(0) string(1) "" int(1) string(1) "" int(2) string(1) "" int(3) string(1) "" int(4) string(1) "" int(5) string(1) "" int(6) string(1) "" int(7) string(1) "" int(8) string(1) "" int(9) string(1) " " int(10) string(1) " " int(11) string(1) " " int(12) string(1) " " int(13) string(1) " " int(14) string(1) "" int(15) string(1) "" int(16) string(1) "" int(17) string(1) "" int(18) string(1) "" int(19) string(1) "" int(20) string(1) "" int(21) string(1) "" int(22) string(1) "" int(23) string(1) "" int(24) string(1) "" int(25) string(1) "" int(26) string(1) "" int(27) string(1) "" int(28) string(1) "" int(29) string(1) "" int(30) string(1) "" int(31) string(1) "" int(32) string(1) " " int(33) string(1) "!" int(34) string(1) """ int(35) string(1) "#" int(36) string(1) "$" int(37) string(1) "%" int(38) string(1) "&" int(39) string(1) "'" int(40) string(1) "(" int(41) string(1) ")" int(42) string(1) "*" int(43) string(1) "+" int(44) string(1) "," int(45) string(1) "-" int(46) string(1) "." int(47) string(1) "/" int(48) string(1) "0" int(49) string(1) "1" int(50) string(1) "2" int(51) string(1) "3" int(52) string(1) "4" int(53) string(1) "5" int(54) string(1) "6" int(55) string(1) "7" int(56) string(1) "8" int(57) string(1) "9" int(58) string(1) ":" int(59) string(1) ";" int(60) string(1) "<" int(61) string(1) "=" int(62) string(1) ">" int(63) string(1) "?" int(64) string(1) "@" int(65) string(1) "A" int(66) string(1) "B" int(67) string(1) "C" int(68) string(1) "D" int(69) string(1) "E" int(70) string(1) "F" int(71) string(1) "G" int(72) string(1) "H" int(73) string(1) "I" int(74) string(1) "J" int(75) string(1) "K" int(76) string(1) "L" int(77) string(1) "M" int(78) string(1) "N" int(79) string(1) "O" int(80) string(1) "P" int(81) string(1) "Q" int(82) string(1) "R" int(83) string(1) "S" int(84) string(1) "T" int(85) string(1) "U" int(86) string(1) "V" int(87) string(1) "W" int(88) string(1) "X" int(89) string(1) "Y" int(90) string(1) "Z" int(91) string(1) "[" int(92) string(1) "\" int(93) string(1) "]" int(94) string(1) "^" int(95) string(1) "_" int(96) string(1) "`" int(97) string(1) "a" int(98) string(1) "b" int(99) string(1) "c" int(100) string(1) "d" int(101) string(1) "e" int(102) string(1) "f" int(103) string(1) "g" int(104) string(1) "h" int(105) string(1) "i" int(106) string(1) "j" int(107) string(1) "k" int(108) string(1) "l" int(109) string(1) "m" int(110) string(1) "n" int(111) string(1) "o" int(112) string(1) "p" int(113) string(1) "q" int(114) string(1) "r" int(115) string(1) "s" int(116) string(1) "t" int(117) string(1) "u" int(118) string(1) "v" int(119) string(1) "w" int(120) string(1) "x" int(121) string(1) "y" int(122) string(1) "z" int(123) string(1) "{" int(124) string(1) "|" int(125) string(1) "}" int(126) string(1) "~" int(127) string(1) "" int(128) string(1) "�" int(129) string(1) "�" int(130) string(1) "�" int(131) string(1) "�" int(132) string(1) "�" int(133) string(1) "�" int(134) string(1) "�" int(135) string(1) "�" int(136) string(1) "�" int(137) string(1) "�" int(138) string(1) "�" int(139) string(1) "�" int(140) string(1) "�" int(141) string(1) "�" int(142) string(1) "�" int(143) string(1) "�" int(144) string(1) "�" int(145) string(1) "�" int(146) string(1) "�" int(147) string(1) "�" int(148) string(1) "�" int(149) string(1) "�" int(150) string(1) "�" int(151) string(1) "�" int(152) string(1) "�" int(153) string(1) "�" int(154) string(1) "�" int(155) string(1) "�" int(156) string(1) "�" int(157) string(1) "�" int(158) string(1) "�" int(159) string(1) "�" int(160) string(1) "�" int(161) string(1) "�" int(162) string(1) "�" int(163) string(1) "�" int(164) string(1) "�" int(165) string(1) "�" int(166) string(1) "�" int(167) string(1) "�" int(168) string(1) "�" int(169) string(1) "�" int(170) string(1) "�" int(171) string(1) "�" int(172) string(1) "�" int(173) string(1) "�" int(174) string(1) "�" int(175) string(1) "�" int(176) string(1) "�" int(177) string(1) "�" int(178) string(1) "�" int(179) string(1) "�" int(180) string(1) "�" int(181) string(1) "�" int(182) string(1) "�" int(183) string(1) "�" int(184) string(1) "�" int(185) string(1) "�" int(186) string(1) "�" int(187) string(1) "�" int(188) string(1) "�" int(189) string(1) "�" int(190) string(1) "�" int(191) string(1) "�" int(192) string(1) "�" int(193) string(1) "�" int(194) string(1) "�" int(195) string(1) "�" int(196) string(1) "�" int(197) string(1) "�" int(198) string(1) "�" int(199) string(1) "�" int(200) string(1) "�" int(201) string(1) "�" int(202) string(1) "�" int(203) string(1) "�" int(204) string(1) "�" int(205) string(1) "�" int(206) string(1) "�" int(207) string(1) "�" int(208) string(1) "�" int(209) string(1) "�" int(210) string(1) "�" int(211) string(1) "�" int(212) string(1) "�" int(213) string(1) "�" int(214) string(1) "�" int(215) string(1) "�" int(216) string(1) "�" int(217) string(1) "�" int(218) string(1) "�" int(219) string(1) "�" int(220) string(1) "�" int(221) string(1) "�" int(222) string(1) "�" int(223) string(1) "�" int(224) string(1) "�" int(225) string(1) "�" int(226) string(1) "�" int(227) string(1) "�" int(228) string(1) "�" int(229) string(1) "�" int(230) string(1) "�" int(231) string(1) "�" int(232) string(1) "�" int(233) string(1) "�" int(234) string(1) "�" int(235) string(1) "�" int(236) string(1) "�" int(237) string(1) "�" int(238) string(1) "�" int(239) string(1) "�" int(240) string(1) "�" int(241) string(1) "�" int(242) string(1) "�" int(243) string(1) "�" int(244) string(1) "�" int(245) string(1) "�" int(246) string(1) "�" int(247) string(1) "�" int(248) string(1) "�" int(249) string(1) "�" int(250) string(1) "�" int(251) string(1) "�" int(252) string(1) "�" int(253) string(1) "�" int(254) string(1) "�" int(255) string(1) "�" int(256) string(1) "" int(257) string(1) ""