3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $html = '<h1>{${eval($_GET[php_code])}}</h1>'; // uppercase headings $html = preg_replace( '(<h([1-6])>(.*?)</h\1>)e', '"<h$1>" . strtoupper("$2") . "</h$1>"', $html );
Output for 7.0.0 - 7.1.0
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/JZ7dg on line 7
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant php_code - assumed 'php_code' Notice: Undefined index: php_code Notice: Undefined variable:
Output for 5.5.0 - 5.6.28
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/JZ7dg on line 9 Notice: Use of undefined constant php_code - assumed 'php_code' in /in/JZ7dg(9) : regexp code on line 1 Notice: Undefined index: php_code in /in/JZ7dg(9) : regexp code on line 1 Notice: Undefined variable: in /in/JZ7dg(9) : regexp code on line 1
Output for 5.3.0 - 5.4.45
Notice: Use of undefined constant php_code - assumed 'php_code' in /in/JZ7dg(9) : regexp code on line 1 Notice: Undefined index: php_code in /in/JZ7dg(9) : regexp code on line 1 Notice: Undefined variable: in /in/JZ7dg(9) : regexp code on line 1
Output for 5.0.4 - 5.2.17
Notice: Use of undefined constant php_code - assumed 'php_code' in /in/JZ7dg(9) : regexp code on line 1 Notice: Undefined index: php_code in /in/JZ7dg(9) : regexp code on line 1 Notice: Undefined variable: in /in/JZ7dg(9) : regexp code on line 1
Output for 4.3.0 - 5.0.3
Notice: Use of undefined constant php_code - assumed 'php_code' in /in/JZ7dg(9) : regexp code on line 1 Notice: Undefined index: php_code in /in/JZ7dg(9) : regexp code on line 1 Notice: Undefined variable: in /in/JZ7dg(9) : regexp code on line 1