3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $categoryText = 'TOYA > Kleště > Kleště spojovaci'; $categoryUrl = NULL; if (!empty($categoryText)) { $category = explode('>', $categoryText); $category = array_map(function ($val) { return trim($val); }, $category); $last = end($category); $categoryUrl = Strings::webalize(prev($category) . ' ' . $last); } var_dump ($categoryUrl);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'Strings' not found in /in/OZcXi:12 Stack trace: #0 {main} thrown in /in/OZcXi on line 12
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Class 'Strings' not found in /in/OZcXi on line 12
Process exited with code 255.