online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
<?php function str_replace_first($from, $to, $content) { $from = '/'.preg_quote($from, '/').'/'; return preg_replace($from, $to, $content, 1); } $content = '<table></table><p></p><table></table><p></p><table></table><p></p>'; preg_match_all('/<table>/', $content, $matches); $result=$content; foreach ($matches[0] As $key => $value) { $new_value = '<table class=' . $key . ' >'; $result=str_replace_first($value, $new_value,$result); } echo $result; ?>

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue