3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = "3v4l.org - online PHP shell, test in 80+ different PHP versions!"; $arr = preg_split('/ |,|\)|\(|\;|\.|\[a-z]/',$subject); $arr1 = preg_split('~[^\p{L}\p{N}\']+~u',$subject); print_r($arr); print_r($arr1);
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
Array ( [0] => 3v4l [1] => org [2] => - [3] => online [4] => PHP [5] => shell [6] => [7] => test [8] => in [9] => 80+ [10] => different [11] => PHP [12] => versions! ) Array ( [0] => 3v4l [1] => org [2] => online [3] => PHP [4] => shell [5] => test [6] => in [7] => 80 [8] => different [9] => PHP [10] => versions [11] => )
Output for 4.3.11, 5.0.0 - 5.0.4
Warning: preg_split(): Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /in/IdTUv on line 4 Array ( [0] => 3v4l [1] => org [2] => - [3] => online [4] => PHP [5] => shell [6] => [7] => test [8] => in [9] => 80+ [10] => different [11] => PHP [12] => versions! )
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /in/IdTUv on line 4 Array ( [0] => 3v4l [1] => org [2] => - [3] => online [4] => PHP [5] => shell [6] => [7] => test [8] => in [9] => 80+ [10] => different [11] => PHP [12] => versions! )