3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i <= 255; $i++) { $x = ord(chr($i) ^ chr(128)); var_dump([$i, $x, $i !== $x]); }
based on NhVmG
Output for 5.4.0 - 7.2.0
array(3) { [0]=> int(0) [1]=> int(128) [2]=> bool(true) } array(3) { [0]=> int(1) [1]=> int(129) [2]=> bool(true) } array(3) { [0]=> int(2) [1]=> int(130) [2]=> bool(true) } array(3) { [0]=> int(3) [1]=> int(131) [2]=> bool(true) } array(3) { [0]=> int(4) [1]=> int(132) [2]=> bool(true) } array(3) { [0]=> int(5) [1]=> int(133) [2]=> bool(true) } array(3) { [0]=> int(6) [1]=> int(134) [2]=> bool(true) } array(3) { [0]=> int(7) [1]=> int(135) [2]=> bool(true) } array(3) { [0]=> int(8) [1]=> int(136) [2]=> bool(true) } array(3) { [0]=> int(9) [1]=> int(137) [2]=> bool(true) } array(3) { [0]=> int(10) [1]=> int(138) [2]=> bool(true) } array(3) { [0]=> int(11) [1]=> int(139) [2]=> bool(true) } array(3) { [0]=> int(12) [1]=> int(140) [2]=> bool(true) } array(3) { [0]=> int(13) [1]=> int(141) [2]=> bool(true) } array(3) { [0]=> int(14) [1]=> int(142) [2]=> bool(true) } array(3) { [0]=> int(15) [1]=> int(143) [2]=> bool(true) } array(3) { [0]=> int(16) [1]=> int(144) [2]=> bool(true) } array(3) { [0]=> int(17) [1]=> int(145) [2]=> bool(true) } array(3) { [0]=> int(18) [1]=> int(146) [2]=> bool(true) } array(3) { [0]=> int(19) [1]=> int(147) [2]=> bool(true) } array(3) { [0]=> int(20) [1]=> int(148) [2]=> bool(true) } array(3) { [0]=> int(21) [1]=> int(149) [2]=> bool(true) } array(3) { [0]=> int(22) [1]=> int(150) [2]=> bool(true) } array(3) { [0]=> int(23) [1]=> int(151) [2]=> bool(true) } array(3) { [0]=> int(24) [1]=> int(152) [2]=> bool(true) } array(3) { [0]=> int(25) [1]=> int(153) [2]=> bool(true) } array(3) { [0]=> int(26) [1]=> int(154) [2]=> bool(true) } array(3) { [0]=> int(27) [1]=> int(155) [2]=> bool(true) } array(3) { [0]=> int(28) [1]=> int(156) [2]=> bool(true) } array(3) { [0]=> int(29) [1]=> int(157) [2]=> bool(true) } array(3) { [0]=> int(30) [1]=> int(158) [2]=> bool(true) } array(3) { [0]=> int(31) [1]=> int(159) [2]=> bool(true) } array(3) { [0]=> int(32) [1]=> int(160) [2]=> bool(true) } array(3) { [0]=> int(33) [1]=> int(161) [2]=> bool(true) } array(3) { [0]=> int(34) [1]=> int(162) [2]=> bool(true) } array(3) { [0]=> int(35) [1]=> int(163) [2]=> bool(true) } array(3) { [0]=> int(36) [1]=> int(164) [2]=> bool(true) } array(3) { [0]=> int(37) [1]=> int(165) [2]=> bool(true) } array(3) { [0]=> int(38) [1]=> int(166) [2]=> bool(true) } array(3) { [0]=> int(39) [1]=> int(167) [2]=> bool(true) } array(3) { [0]=> int(40) [1]=> int(168) [2]=> bool(true) } array(3) { [0]=> int(41) [1]=> int(169) [2]=> bool(true) } array(3) { [0]=> int(42) [1]=> int(170) [2]=> bool(true) } array(3) { [0]=> int(43) [1]=> int(171) [2]=> bool(true) } array(3) { [0]=> int(44) [1]=> int(172) [2]=> bool(true) } array(3) { [0]=> int(45) [1]=> int(173) [2]=> bool(true) } array(3) { [0]=> int(46) [1]=> int(174) [2]=> bool(true) } array(3) { [0]=> int(47) [1]=> int(175) [2]=> bool(true) } array(3) { [0]=> int(48) [1]=> int(176) [2]=> bool(true) } array(3) { [0]=> int(49) [1]=> int(177) [2]=> bool(true) } array(3) { [0]=> int(50) [1]=> int(178) [2]=> bool(true) } array(3) { [0]=> int(51) [1]=> int(179) [2]=> bool(true) } array(3) { [0]=> int(52) [1]=> int(180) [2]=> bool(true) } array(3) { [0]=> int(53) [1]=> int(181) [2]=> bool(true) } array(3) { [0]=> int(54) [1]=> int(182) [2]=> bool(true) } array(3) { [0]=> int(55) [1]=> int(183) [2]=> bool(true) } array(3) { [0]=> int(56) [1]=> int(184) [2]=> bool(true) } array(3) { [0]=> int(57) [1]=> int(185) [2]=> bool(true) } array(3) { [0]=> int(58) [1]=> int(186) [2]=> bool(true) } array(3) { [0]=> int(59) [1]=> int(187) [2]=> bool(true) } array(3) { [0]=> int(60) [1]=> int(188) [2]=> bool(true) } array(3) { [0]=> int(61) [1]=> int(189) [2]=> bool(true) } array(3) { [0]=> int(62) [1]=> int(190) [2]=> bool(true) } array(3) { [0]=> int(63) [1]=> int(191) [2]=> bool(true) } array(3) { [0]=> int(64) [1]=> int(192) [2]=> bool(true) } array(3) { [0]=> int(65) [1]=> int(193) [2]=> bool(true) } array(3) { [0]=> int(66) [1]=> int(194) [2]=> bool(true) } array(3) { [0]=> int(67) [1]=> int(195) [2]=> bool(true) } array(3) { [0]=> int(68) [1]=> int(196) [2]=> bool(true) } array(3) { [0]=> int(69) [1]=> int(197) [2]=> bool(true) } array(3) { [0]=> int(70) [1]=> int(198) [2]=> bool(true) } array(3) { [0]=> int(71) [1]=> int(199) [2]=> bool(true) } array(3) { [0]=> int(72) [1]=> int(200) [2]=> bool(true) } array(3) { [0]=> int(73) [1]=> int(201) [2]=> bool(true) } array(3) { [0]=> int(74) [1]=> int(202) [2]=> bool(true) } array(3) { [0]=> int(75) [1]=> int(203) [2]=> bool(true) } array(3) { [0]=> int(76) [1]=> int(204) [2]=> bool(true) } array(3) { [0]=> int(77) [1]=> int(205) [2]=> bool(true) } array(3) { [0]=> int(78) [1]=> int(206) [2]=> bool(true) } array(3) { [0]=> int(79) [1]=> int(207) [2]=> bool(true) } array(3) { [0]=> int(80) [1]=> int(208) [2]=> bool(true) } array(3) { [0]=> int(81) [1]=> int(209) [2]=> bool(true) } array(3) { [0]=> int(82) [1]=> int(210) [2]=> bool(true) } array(3) { [0]=> int(83) [1]=> int(211) [2]=> bool(true) } array(3) { [0]=> int(84) [1]=> int(212) [2]=> bool(true) } array(3) { [0]=> int(85) [1]=> int(213) [2]=> bool(true) } array(3) { [0]=> int(86) [1]=> int(214) [2]=> bool(true) } array(3) { [0]=> int(87) [1]=> int(215) [2]=> bool(true) } array(3) { [0]=> int(88) [1]=> int(216) [2]=> bool(true) } array(3) { [0]=> int(89) [1]=> int(217) [2]=> bool(true) } array(3) { [0]=> int(90) [1]=> int(218) [2]=> bool(true) } array(3) { [0]=> int(91) [1]=> int(219) [2]=> bool(true) } array(3) { [0]=> int(92) [1]=> int(220) [2]=> bool(true) } array(3) { [0]=> int(93) [1]=> int(221) [2]=> bool(true) } array(3) { [0]=> int(94) [1]=> int(222) [2]=> bool(true) } array(3) { [0]=> int(95) [1]=> int(223) [2]=> bool(true) } array(3) { [0]=> int(96) [1]=> int(224) [2]=> bool(true) } array(3) { [0]=> int(97) [1]=> int(225) [2]=> bool(true) } array(3) { [0]=> int(98) [1]=> int(226) [2]=> bool(true) } array(3) { [0]=> int(99) [1]=> int(227) [2]=> bool(true) } array(3) { [0]=> int(100) [1]=> int(228) [2]=> bool(true) } array(3) { [0]=> int(101) [1]=> int(229) [2]=> bool(true) } array(3) { [0]=> int(102) [1]=> int(230) [2]=> bool(true) } array(3) { [0]=> int(103) [1]=> int(231) [2]=> bool(true) } array(3) { [0]=> int(104) [1]=> int(232) [2]=> bool(true) } array(3) { [0]=> int(105) [1]=> int(233) [2]=> bool(true) } array(3) { [0]=> int(106) [1]=> int(234) [2]=> bool(true) } array(3) { [0]=> int(107) [1]=> int(235) [2]=> bool(true) } array(3) { [0]=> int(108) [1]=> int(236) [2]=> bool(true) } array(3) { [0]=> int(109) [1]=> int(237) [2]=> bool(true) } array(3) { [0]=> int(110) [1]=> int(238) [2]=> bool(true) } array(3) { [0]=> int(111) [1]=> int(239) [2]=> bool(true) } array(3) { [0]=> int(112) [1]=> int(240) [2]=> bool(true) } array(3) { [0]=> int(113) [1]=> int(241) [2]=> bool(true) } array(3) { [0]=> int(114) [1]=> int(242) [2]=> bool(true) } array(3) { [0]=> int(115) [1]=> int(243) [2]=> bool(true) } array(3) { [0]=> int(116) [1]=> int(244) [2]=> bool(true) } array(3) { [0]=> int(117) [1]=> int(245) [2]=> bool(true) } array(3) { [0]=> int(118) [1]=> int(246) [2]=> bool(true) } array(3) { [0]=> int(119) [1]=> int(247) [2]=> bool(true) } array(3) { [0]=> int(120) [1]=> int(248) [2]=> bool(true) } array(3) { [0]=> int(121) [1]=> int(249) [2]=> bool(true) } array(3) { [0]=> int(122) [1]=> int(250) [2]=> bool(true) } array(3) { [0]=> int(123) [1]=> int(251) [2]=> bool(true) } array(3) { [0]=> int(124) [1]=> int(252) [2]=> bool(true) } array(3) { [0]=> int(125) [1]=> int(253) [2]=> bool(true) } array(3) { [0]=> int(126) [1]=> int(254) [2]=> bool(true) } array(3) { [0]=> int(127) [1]=> int(255) [2]=> bool(true) } array(3) { [0]=> int(128) [1]=> int(0) [2]=> bool(true) } array(3) { [0]=> int(129) [1]=> int(1) [2]=> bool(true) } array(3) { [0]=> int(130) [1]=> int(2) [2]=> bool(true) } array(3) { [0]=> int(131) [1]=> int(3) [2]=> bool(true) } array(3) { [0]=> int(132) [1]=> int(4) [2]=> bool(true) } array(3) { [0]=> int(133) [1]=> int(5) [2]=> bool(true) } array(3) { [0]=> int(134) [1]=> int(6) [2]=> bool(true) } array(3) { [0]=> int(135) [1]=> int(7) [2]=> bool(true) } array(3) { [0]=> int(136) [1]=> int(8) [2]=> bool(true) } array(3) { [0]=> int(137) [1]=> int(9) [2]=> bool(true) } array(3) { [0]=> int(138) [1]=> int(10) [2]=> bool(true) } array(3) { [0]=> int(139) [1]=> int(11) [2]=> bool(true) } array(3) { [0]=> int(140) [1]=> int(12) [2]=> bool(true) } array(3) { [0]=> int(141) [1]=> int(13) [2]=> bool(true) } array(3) { [0]=> int(142) [1]=> int(14) [2]=> bool(true) } array(3) { [0]=> int(143) [1]=> int(15) [2]=> bool(true) } array(3) { [0]=> int(144) [1]=> int(16) [2]=> bool(true) } array(3) { [0]=> int(145) [1]=> int(17) [2]=> bool(true) } array(3) { [0]=> int(146) [1]=> int(18) [2]=> bool(true) } array(3) { [0]=> int(147) [1]=> int(19) [2]=> bool(true) } array(3) { [0]=> int(148) [1]=> int(20) [2]=> bool(true) } array(3) { [0]=> int(149) [1]=> int(21) [2]=> bool(true) } array(3) { [0]=> int(150) [1]=> int(22) [2]=> bool(true) } array(3) { [0]=> int(151) [1]=> int(23) [2]=> bool(true) } array(3) { [0]=> int(152) [1]=> int(24) [2]=> bool(true) } array(3) { [0]=> int(153) [1]=> int(25) [2]=> bool(true) } array(3) { [0]=> int(154) [1]=> int(26) [2]=> bool(true) } array(3) { [0]=> int(155) [1]=> int(27) [2]=> bool(true) } array(3) { [0]=> int(156) [1]=> int(28) [2]=> bool(true) } array(3) { [0]=> int(157) [1]=> int(29) [2]=> bool(true) } array(3) { [0]=> int(158) [1]=> int(30) [2]=> bool(true) } array(3) { [0]=> int(159) [1]=> int(31) [2]=> bool(true) } array(3) { [0]=> int(160) [1]=> int(32) [2]=> bool(true) } array(3) { [0]=> int(161) [1]=> int(33) [2]=> bool(true) } array(3) { [0]=> int(162) [1]=> int(34) [2]=> bool(true) } array(3) { [0]=> int(163) [1]=> int(35) [2]=> bool(true) } array(3) { [0]=> int(164) [1]=> int(36) [2]=> bool(true) } array(3) { [0]=> int(165) [1]=> int(37) [2]=> bool(true) } array(3) { [0]=> int(166) [1]=> int(38) [2]=> bool(true) } array(3) { [0]=> int(167) [1]=> int(39) [2]=> bool(true) } array(3) { [0]=> int(168) [1]=> int(40) [2]=> bool(true) } array(3) { [0]=> int(169) [1]=> int(41) [2]=> bool(true) } array(3) { [0]=> int(170) [1]=> int(42) [2]=> bool(true) } array(3) { [0]=> int(171) [1]=> int(43) [2]=> bool(true) } array(3) { [0]=> int(172) [1]=> int(44) [2]=> bool(true) } array(3) { [0]=> int(173) [1]=> int(45) [2]=> bool(true) } array(3) { [0]=> int(174) [1]=> int(46) [2]=> bool(true) } array(3) { [0]=> int(175) [1]=> int(47) [2]=> bool(true) } array(3) { [0]=> int(176) [1]=> int(48) [2]=> bool(true) } array(3) { [0]=> int(177) [1]=> int(49) [2]=> bool(true) } array(3) { [0]=> int(178) [1]=> int(50) [2]=> bool(true) } array(3) { [0]=> int(179) [1]=> int(51) [2]=> bool(true) } array(3) { [0]=> int(180) [1]=> int(52) [2]=> bool(true) } array(3) { [0]=> int(181) [1]=> int(53) [2]=> bool(true) } array(3) { [0]=> int(182) [1]=> int(54) [2]=> bool(true) } array(3) { [0]=> int(183) [1]=> int(55) [2]=> bool(true) } array(3) { [0]=> int(184) [1]=> int(56) [2]=> bool(true) } array(3) { [0]=> int(185) [1]=> int(57) [2]=> bool(true) } array(3) { [0]=> int(186) [1]=> int(58) [2]=> bool(true) } array(3) { [0]=> int(187) [1]=> int(59) [2]=> bool(true) } array(3) { [0]=> int(188) [1]=> int(60) [2]=> bool(true) } array(3) { [0]=> int(189) [1]=> int(61) [2]=> bool(true) } array(3) { [0]=> int(190) [1]=> int(62) [2]=> bool(true) } array(3) { [0]=> int(191) [1]=> int(63) [2]=> bool(true) } array(3) { [0]=> int(192) [1]=> int(64) [2]=> bool(true) } array(3) { [0]=> int(193) [1]=> int(65) [2]=> bool(true) } array(3) { [0]=> int(194) [1]=> int(66) [2]=> bool(true) } array(3) { [0]=> int(195) [1]=> int(67) [2]=> bool(true) } array(3) { [0]=> int(196) [1]=> int(68) [2]=> bool(true) } array(3) { [0]=> int(197) [1]=> int(69) [2]=> bool(true) } array(3) { [0]=> int(198) [1]=> int(70) [2]=> bool(true) } array(3) { [0]=> int(199) [1]=> int(71) [2]=> bool(true) } array(3) { [0]=> int(200) [1]=> int(72) [2]=> bool(true) } array(3) { [0]=> int(201) [1]=> int(73) [2]=> bool(true) } array(3) { [0]=> int(202) [1]=> int(74) [2]=> bool(true) } array(3) { [0]=> int(203) [1]=> int(75) [2]=> bool(true) } array(3) { [0]=> int(204) [1]=> int(76) [2]=> bool(true) } array(3) { [0]=> int(205) [1]=> int(77) [2]=> bool(true) } array(3) { [0]=> int(206) [1]=> int(78) [2]=> bool(true) } array(3) { [0]=> int(207) [1]=> int(79) [2]=> bool(true) } array(3) { [0]=> int(208) [1]=> int(80) [2]=> bool(true) } array(3) { [0]=> int(209) [1]=> int(81) [2]=> bool(true) } array(3) { [0]=> int(210) [1]=> int(82) [2]=> bool(true) } array(3) { [0]=> int(211) [1]=> int(83) [2]=> bool(true) } array(3) { [0]=> int(212) [1]=> int(84) [2]=> bool(true) } array(3) { [0]=> int(213) [1]=> int(85) [2]=> bool(true) } array(3) { [0]=> int(214) [1]=> int(86) [2]=> bool(true) } array(3) { [0]=> int(215) [1]=> int(87) [2]=> bool(true) } array(3) { [0]=> int(216) [1]=> int(88) [2]=> bool(true) } array(3) { [0]=> int(217) [1]=> int(89) [2]=> bool(true) } array(3) { [0]=> int(218) [1]=> int(90) [2]=> bool(true) } array(3) { [0]=> int(219) [1]=> int(91) [2]=> bool(true) } array(3) { [0]=> int(220) [1]=> int(92) [2]=> bool(true) } array(3) { [0]=> int(221) [1]=> int(93) [2]=> bool(true) } array(3) { [0]=> int(222) [1]=> int(94) [2]=> bool(true) } array(3) { [0]=> int(223) [1]=> int(95) [2]=> bool(true) } array(3) { [0]=> int(224) [1]=> int(96) [2]=> bool(true) } array(3) { [0]=> int(225) [1]=> int(97) [2]=> bool(true) } array(3) { [0]=> int(226) [1]=> int(98) [2]=> bool(true) } array(3) { [0]=> int(227) [1]=> int(99) [2]=> bool(true) } array(3) { [0]=> int(228) [1]=> int(100) [2]=> bool(true) } array(3) { [0]=> int(229) [1]=> int(101) [2]=> bool(true) } array(3) { [0]=> int(230) [1]=> int(102) [2]=> bool(true) } array(3) { [0]=> int(231) [1]=> int(103) [2]=> bool(true) } array(3) { [0]=> int(232) [1]=> int(104) [2]=> bool(true) } array(3) { [0]=> int(233) [1]=> int(105) [2]=> bool(true) } array(3) { [0]=> int(234) [1]=> int(106) [2]=> bool(true) } array(3) { [0]=> int(235) [1]=> int(107) [2]=> bool(true) } array(3) { [0]=> int(236) [1]=> int(108) [2]=> bool(true) } array(3) { [0]=> int(237) [1]=> int(109) [2]=> bool(true) } array(3) { [0]=> int(238) [1]=> int(110) [2]=> bool(true) } array(3) { [0]=> int(239) [1]=> int(111) [2]=> bool(true) } array(3) { [0]=> int(240) [1]=> int(112) [2]=> bool(true) } array(3) { [0]=> int(241) [1]=> int(113) [2]=> bool(true) } array(3) { [0]=> int(242) [1]=> int(114) [2]=> bool(true) } array(3) { [0]=> int(243) [1]=> int(115) [2]=> bool(true) } array(3) { [0]=> int(244) [1]=> int(116) [2]=> bool(true) } array(3) { [0]=> int(245) [1]=> int(117) [2]=> bool(true) } array(3) { [0]=> int(246) [1]=> int(118) [2]=> bool(true) } array(3) { [0]=> int(247) [1]=> int(119) [2]=> bool(true) } array(3) { [0]=> int(248) [1]=> int(120) [2]=> bool(true) } array(3) { [0]=> int(249) [1]=> int(121) [2]=> bool(true) } array(3) { [0]=> int(250) [1]=> int(122) [2]=> bool(true) } array(3) { [0]=> int(251) [1]=> int(123) [2]=> bool(true) } array(3) { [0]=> int(252) [1]=> int(124) [2]=> bool(true) } array(3) { [0]=> int(253) [1]=> int(125) [2]=> bool(true) } array(3) { [0]=> int(254) [1]=> int(126) [2]=> bool(true) } array(3) { [0]=> int(255) [1]=> int(127) [2]=> bool(true) }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/5qh0T on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[', expecting ')' in /in/5qh0T on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/5qh0T on line 6
Process exited with code 255.