3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = '#phpinfo()#e'; print preg_replace('#.*?#e', 'phpinfo()', 'test'); //echo preg_replace( "/<option value=\"".$test."\"/", "<option value=\"".$test."\" selected", "<option value=\"100\">aasa" );
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/MHksH on line 5
Output for 5.5.0 - 5.6.28
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/MHksH on line 5 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1
Output for 5.3.0 - 5.4.45
Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/MHksH(5) : regexp code on line 1