3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fields = array(array(),array(),array()); oreach($fields as $k => $v){ $max_length = $row[$k]['max_length']; $min_length = $row[$k]['min_length']; if(strlen($v) > $max_length){ echo 'max!!'; exit(); }elseif(strlen($v) < $min_length){ echo 'min!!'; exit(); }else{ echo strlen($v).'<br>'; } if(is_array($v) || ($this->serialize_bool && is_bool($v))){ $v = serialize($v); } $query .= " '".mysql_real_escape_string($v)."'"; $nr++; if($nr != count($fields)){ $query .= ','; } }
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'as' (T_AS) in /in/9rttk on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_AS in /in/9rttk on line 4
Process exited with code 255.