3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $config = array( 'key' => array( '/chat/index/post/' => '/chat/') ); foreach ($config['key'] as $url => $key) { $quoted = preg_quote($url, '/'); $dataKey=array(); if (null !== $res = preg_replace('/' . $quoted . '/', $key, $dataKey)) { echo $res; } }
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/snup2 on line 9 Array
Output for 4.3.0 - 5.3.29
Array