3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = str_split('pierwszy string { drugi string|trzeci string {czwarty string|piąty string}} szósty string {{ósmy string| dziewiąty string} dziesiąty string}{jedenasty string| dwunasty string} trzynasty string', 1); $a = array(); $c = $a[] = ''; foreach ( $string as $val ) { switch ( $val ) { case '{': // kod break; case '|': // kod break; case '}': $c break; default: $c .= $val; break; } }
Output for 5.4.0 - 5.4.13
Parse error: syntax error, unexpected 'break' (T_BREAK) in /in/Pn1DT on line 17
Process exited with code 255.
Output for 5.3.0 - 5.3.23
Parse error: syntax error, unexpected T_BREAK in /in/Pn1DT on line 17
Process exited with code 255.