3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $secret = 9292929; $data = '$secret = 1111111'; $trigger = ".*)/e\0"; // function to emphasizes the searched word in the results preg_replace( "/($trigger)/i", '"<em>" . strtoupper($1) . "</em>"', $data ); var_dump( $secret );
Output for 5.4.7 - 7.2.0
Warning: preg_replace(): Null byte in regex in /in/SddDJ on line 10 int(9292929)
Output for 5.3.0 - 5.4.6
Warning: strtoupper() expects exactly 1 parameter, 0 given in /in/SddDJ(10) : regexp code on line 1 int(1111111)
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for strtoupper() in /in/SddDJ(10) : regexp code on line 1 int(1111111)