3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo vsprintf( "UPDATE %s SET %1$s=REPLACE(%1$s, %s, %s) WHERE %1$s LIKE %s", array('table', 'field_name', '^from^', '^to^', '^from^') );
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: s in /in/hchv0 on line 4 Notice: Undefined variable: s in /in/hchv0 on line 4 Notice: Undefined variable: s in /in/hchv0 on line 4 Warning: vsprintf(): Too few arguments in /in/hchv0 on line 5
Output for 5.0.4 - 5.6.28
Notice: Undefined variable: s in /in/hchv0 on line 4 Notice: Undefined variable: s in /in/hchv0 on line 4 Notice: Undefined variable: s in /in/hchv0 on line 4 Warning: vsprintf(): Too few arguments in /in/hchv0 on line 10
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: s in /in/hchv0 on line 4 Notice: Undefined variable: s in /in/hchv0 on line 4 Notice: Undefined variable: s in /in/hchv0 on line 4 Warning: vsprintf(): Too few arguments in /in/hchv0 on line 10
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: s in /in/hchv0 on line 4 Notice: Undefined variable: s in /in/hchv0 on line 4 Notice: Undefined variable: s in /in/hchv0 on line 4 Warning: vsprintf() [http://www.php.net/function.vsprintf]: Too few arguments in /in/hchv0 on line 10