online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
<?php $regexes = [ '/\[\d+\] \[\d+\]/', '/\[\d+\] \[\d+\] \[\d+\]/', '/\[\d+\] \[\d+\] \[\d+\] \[\d+\]/' ]; $string = 'Witam, potrzebuje stworzyć program który będzie szukał w stringu frazy i zwracał jej początkową pozycję oraz końcową' . 'fraza jaką potrzebuje znaleźć [80] [2] to liczba znajdująca się między dwoma kwadratowymi nawiasami. [1] [25] [99] [2521]' . 'I tutaj zaczynają się schody bo o ile nie miałem problemu ze znalezieniem tego jeżeli w danym stringu było' . 'tylko jedno [99] [534] [1] wystąpienie [2] [1] tego '; foreach ($regexes as $regex) { if (preg_match_all($regex, $string, $matches)) { var_dump($matches); } else { echo 'Brak'; } }

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