online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
<?php $regex = '/\[\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 tego '; if (preg_match_all($regex, $string, $matches, PREG_OFFSET_CAPTURE)) { foreach ($matches as $match) var_dump($match); } 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