3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/JZ7dg on line 5
Output for 7.0.19 - 7.0.33, 7.1.5 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/JZ7dg on line 8
Output for 7.0.0 - 7.0.18, 7.1.0 - 7.1.4
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/JZ7dg on line 7
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
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.3.29, 5.4.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.0.5, 5.1.0 - 5.1.6, 5.2.0 - 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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.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

preferences:
286.74 ms | 402 KiB | 457 Q