3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i=0; $i<258; $i++) { var_dump($i); var_dump(rawurlencode(chr($i))); echo "\n"; }
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(0) string(3) "%00" int(1) string(3) "%01" int(2) string(3) "%02" int(3) string(3) "%03" int(4) string(3) "%04" int(5) string(3) "%05" int(6) string(3) "%06" int(7) string(3) "%07" int(8) string(3) "%08" int(9) string(3) "%09" int(10) string(3) "%0A" int(11) string(3) "%0B" int(12) string(3) "%0C" int(13) string(3) "%0D" int(14) string(3) "%0E" int(15) string(3) "%0F" int(16) string(3) "%10" int(17) string(3) "%11" int(18) string(3) "%12" int(19) string(3) "%13" int(20) string(3) "%14" int(21) string(3) "%15" int(22) string(3) "%16" int(23) string(3) "%17" int(24) string(3) "%18" int(25) string(3) "%19" int(26) string(3) "%1A" int(27) string(3) "%1B" int(28) string(3) "%1C" int(29) string(3) "%1D" int(30) string(3) "%1E" int(31) string(3) "%1F" int(32) string(3) "%20" int(33) string(3) "%21" int(34) string(3) "%22" int(35) string(3) "%23" int(36) string(3) "%24" int(37) string(3) "%25" int(38) string(3) "%26" int(39) string(3) "%27" int(40) string(3) "%28" int(41) string(3) "%29" int(42) string(3) "%2A" int(43) string(3) "%2B" int(44) string(3) "%2C" int(45) string(1) "-" int(46) string(1) "." int(47) string(3) "%2F" 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(3) "%3A" int(59) string(3) "%3B" int(60) string(3) "%3C" int(61) string(3) "%3D" int(62) string(3) "%3E" int(63) string(3) "%3F" int(64) string(3) "%40" 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(3) "%5B" int(92) string(3) "%5C" int(93) string(3) "%5D" int(94) string(3) "%5E" int(95) string(1) "_" int(96) string(3) "%60" 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(3) "%7B" int(124) string(3) "%7C" int(125) string(3) "%7D" int(126) string(1) "~" int(127) string(3) "%7F" int(128) string(3) "%80" int(129) string(3) "%81" int(130) string(3) "%82" int(131) string(3) "%83" int(132) string(3) "%84" int(133) string(3) "%85" int(134) string(3) "%86" int(135) string(3) "%87" int(136) string(3) "%88" int(137) string(3) "%89" int(138) string(3) "%8A" int(139) string(3) "%8B" int(140) string(3) "%8C" int(141) string(3) "%8D" int(142) string(3) "%8E" int(143) string(3) "%8F" int(144) string(3) "%90" int(145) string(3) "%91" int(146) string(3) "%92" int(147) string(3) "%93" int(148) string(3) "%94" int(149) string(3) "%95" int(150) string(3) "%96" int(151) string(3) "%97" int(152) string(3) "%98" int(153) string(3) "%99" int(154) string(3) "%9A" int(155) string(3) "%9B" int(156) string(3) "%9C" int(157) string(3) "%9D" int(158) string(3) "%9E" int(159) string(3) "%9F" int(160) string(3) "%A0" int(161) string(3) "%A1" int(162) string(3) "%A2" int(163) string(3) "%A3" int(164) string(3) "%A4" int(165) string(3) "%A5" int(166) string(3) "%A6" int(167) string(3) "%A7" int(168) string(3) "%A8" int(169) string(3) "%A9" int(170) string(3) "%AA" int(171) string(3) "%AB" int(172) string(3) "%AC" int(173) string(3) "%AD" int(174) string(3) "%AE" int(175) string(3) "%AF" int(176) string(3) "%B0" int(177) string(3) "%B1" int(178) string(3) "%B2" int(179) string(3) "%B3" int(180) string(3) "%B4" int(181) string(3) "%B5" int(182) string(3) "%B6" int(183) string(3) "%B7" int(184) string(3) "%B8" int(185) string(3) "%B9" int(186) string(3) "%BA" int(187) string(3) "%BB" int(188) string(3) "%BC" int(189) string(3) "%BD" int(190) string(3) "%BE" int(191) string(3) "%BF" int(192) string(3) "%C0" int(193) string(3) "%C1" int(194) string(3) "%C2" int(195) string(3) "%C3" int(196) string(3) "%C4" int(197) string(3) "%C5" int(198) string(3) "%C6" int(199) string(3) "%C7" int(200) string(3) "%C8" int(201) string(3) "%C9" int(202) string(3) "%CA" int(203) string(3) "%CB" int(204) string(3) "%CC" int(205) string(3) "%CD" int(206) string(3) "%CE" int(207) string(3) "%CF" int(208) string(3) "%D0" int(209) string(3) "%D1" int(210) string(3) "%D2" int(211) string(3) "%D3" int(212) string(3) "%D4" int(213) string(3) "%D5" int(214) string(3) "%D6" int(215) string(3) "%D7" int(216) string(3) "%D8" int(217) string(3) "%D9" int(218) string(3) "%DA" int(219) string(3) "%DB" int(220) string(3) "%DC" int(221) string(3) "%DD" int(222) string(3) "%DE" int(223) string(3) "%DF" int(224) string(3) "%E0" int(225) string(3) "%E1" int(226) string(3) "%E2" int(227) string(3) "%E3" int(228) string(3) "%E4" int(229) string(3) "%E5" int(230) string(3) "%E6" int(231) string(3) "%E7" int(232) string(3) "%E8" int(233) string(3) "%E9" int(234) string(3) "%EA" int(235) string(3) "%EB" int(236) string(3) "%EC" int(237) string(3) "%ED" int(238) string(3) "%EE" int(239) string(3) "%EF" int(240) string(3) "%F0" int(241) string(3) "%F1" int(242) string(3) "%F2" int(243) string(3) "%F3" int(244) string(3) "%F4" int(245) string(3) "%F5" int(246) string(3) "%F6" int(247) string(3) "%F7" int(248) string(3) "%F8" int(249) string(3) "%F9" int(250) string(3) "%FA" int(251) string(3) "%FB" int(252) string(3) "%FC" int(253) string(3) "%FD" int(254) string(3) "%FE" int(255) string(3) "%FF" int(256) string(3) "%00" int(257) string(3) "%01"
Output for 4.3.0 - 5.2.17
int(0) string(3) "%00" int(1) string(3) "%01" int(2) string(3) "%02" int(3) string(3) "%03" int(4) string(3) "%04" int(5) string(3) "%05" int(6) string(3) "%06" int(7) string(3) "%07" int(8) string(3) "%08" int(9) string(3) "%09" int(10) string(3) "%0A" int(11) string(3) "%0B" int(12) string(3) "%0C" int(13) string(3) "%0D" int(14) string(3) "%0E" int(15) string(3) "%0F" int(16) string(3) "%10" int(17) string(3) "%11" int(18) string(3) "%12" int(19) string(3) "%13" int(20) string(3) "%14" int(21) string(3) "%15" int(22) string(3) "%16" int(23) string(3) "%17" int(24) string(3) "%18" int(25) string(3) "%19" int(26) string(3) "%1A" int(27) string(3) "%1B" int(28) string(3) "%1C" int(29) string(3) "%1D" int(30) string(3) "%1E" int(31) string(3) "%1F" int(32) string(3) "%20" int(33) string(3) "%21" int(34) string(3) "%22" int(35) string(3) "%23" int(36) string(3) "%24" int(37) string(3) "%25" int(38) string(3) "%26" int(39) string(3) "%27" int(40) string(3) "%28" int(41) string(3) "%29" int(42) string(3) "%2A" int(43) string(3) "%2B" int(44) string(3) "%2C" int(45) string(1) "-" int(46) string(1) "." int(47) string(3) "%2F" 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(3) "%3A" int(59) string(3) "%3B" int(60) string(3) "%3C" int(61) string(3) "%3D" int(62) string(3) "%3E" int(63) string(3) "%3F" int(64) string(3) "%40" 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(3) "%5B" int(92) string(3) "%5C" int(93) string(3) "%5D" int(94) string(3) "%5E" int(95) string(1) "_" int(96) string(3) "%60" 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(3) "%7B" int(124) string(3) "%7C" int(125) string(3) "%7D" int(126) string(3) "%7E" int(127) string(3) "%7F" int(128) string(3) "%80" int(129) string(3) "%81" int(130) string(3) "%82" int(131) string(3) "%83" int(132) string(3) "%84" int(133) string(3) "%85" int(134) string(3) "%86" int(135) string(3) "%87" int(136) string(3) "%88" int(137) string(3) "%89" int(138) string(3) "%8A" int(139) string(3) "%8B" int(140) string(3) "%8C" int(141) string(3) "%8D" int(142) string(3) "%8E" int(143) string(3) "%8F" int(144) string(3) "%90" int(145) string(3) "%91" int(146) string(3) "%92" int(147) string(3) "%93" int(148) string(3) "%94" int(149) string(3) "%95" int(150) string(3) "%96" int(151) string(3) "%97" int(152) string(3) "%98" int(153) string(3) "%99" int(154) string(3) "%9A" int(155) string(3) "%9B" int(156) string(3) "%9C" int(157) string(3) "%9D" int(158) string(3) "%9E" int(159) string(3) "%9F" int(160) string(3) "%A0" int(161) string(3) "%A1" int(162) string(3) "%A2" int(163) string(3) "%A3" int(164) string(3) "%A4" int(165) string(3) "%A5" int(166) string(3) "%A6" int(167) string(3) "%A7" int(168) string(3) "%A8" int(169) string(3) "%A9" int(170) string(3) "%AA" int(171) string(3) "%AB" int(172) string(3) "%AC" int(173) string(3) "%AD" int(174) string(3) "%AE" int(175) string(3) "%AF" int(176) string(3) "%B0" int(177) string(3) "%B1" int(178) string(3) "%B2" int(179) string(3) "%B3" int(180) string(3) "%B4" int(181) string(3) "%B5" int(182) string(3) "%B6" int(183) string(3) "%B7" int(184) string(3) "%B8" int(185) string(3) "%B9" int(186) string(3) "%BA" int(187) string(3) "%BB" int(188) string(3) "%BC" int(189) string(3) "%BD" int(190) string(3) "%BE" int(191) string(3) "%BF" int(192) string(3) "%C0" int(193) string(3) "%C1" int(194) string(3) "%C2" int(195) string(3) "%C3" int(196) string(3) "%C4" int(197) string(3) "%C5" int(198) string(3) "%C6" int(199) string(3) "%C7" int(200) string(3) "%C8" int(201) string(3) "%C9" int(202) string(3) "%CA" int(203) string(3) "%CB" int(204) string(3) "%CC" int(205) string(3) "%CD" int(206) string(3) "%CE" int(207) string(3) "%CF" int(208) string(3) "%D0" int(209) string(3) "%D1" int(210) string(3) "%D2" int(211) string(3) "%D3" int(212) string(3) "%D4" int(213) string(3) "%D5" int(214) string(3) "%D6" int(215) string(3) "%D7" int(216) string(3) "%D8" int(217) string(3) "%D9" int(218) string(3) "%DA" int(219) string(3) "%DB" int(220) string(3) "%DC" int(221) string(3) "%DD" int(222) string(3) "%DE" int(223) string(3) "%DF" int(224) string(3) "%E0" int(225) string(3) "%E1" int(226) string(3) "%E2" int(227) string(3) "%E3" int(228) string(3) "%E4" int(229) string(3) "%E5" int(230) string(3) "%E6" int(231) string(3) "%E7" int(232) string(3) "%E8" int(233) string(3) "%E9" int(234) string(3) "%EA" int(235) string(3) "%EB" int(236) string(3) "%EC" int(237) string(3) "%ED" int(238) string(3) "%EE" int(239) string(3) "%EF" int(240) string(3) "%F0" int(241) string(3) "%F1" int(242) string(3) "%F2" int(243) string(3) "%F3" int(244) string(3) "%F4" int(245) string(3) "%F5" int(246) string(3) "%F6" int(247) string(3) "%F7" int(248) string(3) "%F8" int(249) string(3) "%F9" int(250) string(3) "%FA" int(251) string(3) "%FB" int(252) string(3) "%FC" int(253) string(3) "%FD" int(254) string(3) "%FE" int(255) string(3) "%FF" int(256) string(3) "%00" int(257) string(3) "%01"