3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_content = mb_decode_numericentity( str_replace( array('&#60;', '&#62;', '&#34;'), array('&lt;', '&gt;', '&quot;'), preg_replace_callback( '/&#\Kx([0-9a-f]++)(?=;)/i', function ($matches) { return hexdec($matches[1]); }, $_content ) ), array(0x0021, 0x007E, 0x0000, 0xFFFF), INT_ENC ); ?>
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: _content in /in/IcQ5g on line 10 Notice: Use of undefined constant INT_ENC - assumed 'INT_ENC' in /in/IcQ5g on line 15 Warning: mb_decode_numericentity(): Unknown encoding "INT_ENC" in /in/IcQ5g on line 15
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: _content in /in/IcQ5g on line 12 Notice: Use of undefined constant INT_ENC - assumed 'INT_ENC' in /in/IcQ5g on line 15 Warning: Unknown encoding "INT_ENC" in /in/IcQ5g on line 16
Output for 5.3.0 - 5.6.28
Notice: Undefined variable: _content in /in/IcQ5g on line 12 Notice: Use of undefined constant INT_ENC - assumed 'INT_ENC' in /in/IcQ5g on line 16 Warning: mb_decode_numericentity(): Unknown encoding "INT_ENC" in /in/IcQ5g on line 16
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/IcQ5g on line 8
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 T_FUNCTION in /in/IcQ5g on line 8
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/IcQ5g on line 8
Process exited with code 255.