3v4l.org

run code in 500+ PHP versions simultaneously
<?php $token = (object) ['data' => ['<?php echo $_GET[“backUrl”];?>']]; $bits = preg_split( '/\\b((?:[a-z][\\w\\-]+:(?:\\/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}\\/)(?:[^\\s()<>]|\\((?:[^\\s()<>]|(?:\\([^\\s()<>]+\\)))*\\))+(?:\\((?:[^\\s()<>]|(?:\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:\'".,<>?\x{00ab}\x{00bb}\x{201c}\x{201d}\x{2018}\x{2019}]))/iu', $token->data, -1, PREG_SPLIT_DELIM_CAPTURE); $token = array(); // $i = index // $c = count // $l = is link for ($i = 0, $c = count($bits), $l = false; $i < $c; $i++, $l = !$l) { }
Output for 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Fatal error: Uncaught TypeError: preg_split(): Argument #2 ($subject) must be of type string, array given in /in/daRFo:5 Stack trace: #0 /in/daRFo(5): preg_split('/\\b((?:[a-z][\\w...', Array, -1, 2) #1 {main} thrown in /in/daRFo on line 5
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.34
Fatal error: Uncaught TypeError: preg_split(): Argument #2 ($subject) must be of type string, array given in /in/daRFo:7 Stack trace: #0 /in/daRFo(7): preg_split('/\\b((?:[a-z][\\w...', Array, -1, 2) #1 {main} thrown in /in/daRFo on line 7
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: preg_split() expects parameter 2 to be string, array given in /in/daRFo on line 7 Warning: count(): Parameter must be an array or an object that implements Countable in /in/daRFo on line 15

preferences:
100.86 ms | 1405 KiB | 4 Q