3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $field = 'aut.date AS "date_inscription"'; if(strpos($field, 'AS')!=-1) { $_aliasSuffix = explode('AS', $_field); $aliasSuffix = str_replace(array('"', "'"), '', trim($_aliasSuffix[1])); } echo "aliasSuffix=$aliasSuffix";
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: _field in /in/2F5pa on line 4 Notice: Undefined offset: 1 in /in/2F5pa on line 5 aliasSuffix=
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: _field in /in/2F5pa on line 4 Notice: Undefined offset: 1 in /in/2F5pa on line 5 aliasSuffix=
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: _field in /in/2F5pa on line 4 Notice: Undefined offset: 1 in /in/2F5pa on line 5 aliasSuffix=