3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a= "@table(hello)"; $b = "@column"; list($key, $value) = array_pad(explode("(", rtrim($a, ")")), 2, null); var_dump($key); var_dump($value); list($key, $value) = array_pad(explode("(", rtrim($b, ")")), 2, null); var_dump($key); var_dump($value);
Output for 4.3.0 - 7.1.0
string(6) "@table" string(5) "hello" string(7) "@column" NULL