3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Null byte in regex in /in/SddDJ on line 10 int(9292929)
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Error: Null byte found in pattern in /in/SddDJ on line 10
Process exited with code 255.
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)