3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $nomeColuna = array('I' => 'URL_IMAGEM', 'V' => 'URL_VIDEO', 'A' => 'URL_ANEXO', 'E' => 'URL_EXTRA', ); $update = sprintf("UPDATE MW3_CONTEUDO SET %s = '' WHERE SETID = '%s' AND ID_CONTEUDO = '%d'", $nomeColuna[$classificacao_arquivo], 'MW3', 1); echo $update;
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: classificacao_arquivo in /in/KZrLl on line 9 Notice: Undefined index: in /in/KZrLl on line 9 UPDATE MW3_CONTEUDO SET = '' WHERE SETID = 'MW3' AND ID_CONTEUDO = '1'
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: classificacao_arquivo in /in/KZrLl on line 9 Notice: Undefined index: in /in/KZrLl on line 9 UPDATE MW3_CONTEUDO SET = '' WHERE SETID = 'MW3' AND ID_CONTEUDO = '1'
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: classificacao_arquivo in /in/KZrLl on line 9 Notice: Undefined index: in /in/KZrLl on line 9 UPDATE MW3_CONTEUDO SET = '' WHERE SETID = 'MW3' AND ID_CONTEUDO = '1'