3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match_all("/\//", $cwd, $matches); var_dump($matches);
Output for 5.0.4 - 5.6.25, hhvm-3.10.0, 7.0.0 - 7.1.0
Notice: Undefined variable: cwd in /in/PepQ0 on line 3 array(1) { [0]=> array(0) { } }
Output for hhvm-3.12.0 - 3.13.2
Notice: Undefined variable: cwd in /in/PepQ0 on line 3 Warning: preg_match_all() expects parameter 2 to be string, null given in /in/PepQ0 on line 3 NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: cwd in /in/PepQ0 on line 3 array(1) { [0]=> array(0) { } }