3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ( isset($_POST['ssn1']) and !preg_match('/^[0-9]{3}$/', $_POST['ssn1']) ) { $ssn1 = $_POST['ssn1']; $ssn_error = "SSN is missing or invalid"; $driver_err = 1; update_err = 1; } elseif ( isset($_POST['ssn1']) ) { $ssn1 = $_POST['ssn1']; } elseif ( strlen(substr(mysql_result($r, 0, 'drivers.ssn'), 0, 3)) != 3 ) { $ssn1 = substr(mysql_result($r, 0, 'drivers.ssn'), 0, 3); $ssn_error = "SSN is missing or invalid"; $driver_err = 1; } else { $ssn1 = substr(mysql_result($r, 0, 'drivers.ssn'), 0, 3); } if ( isset($_POST['ssn2']) and !preg_match('/^[0-9]{2}$/', $_POST['ssn2']) ) { $ssn2 = $_POST['ssn2']; $ssn_error = "SSN is missing or invalid"; $driver_err = 1; update_err = 1; } elseif ( isset($_POST['ssn2']) ) { $ssn2 = $_POST['ssn2']; } elseif ( strlen(substr(mysql_result($r, 0, 'drivers.ssn'), 3, 2)) != 2 ) { $ssn2 = substr(mysql_result($r, 0, 'drivers.ssn'), 3, 2); $ssn_error = "SSN is missing or invalid"; $driver_err = 1; } else { $ssn2 = substr(mysql_result($r, 0, 'drivers.ssn'), 3, 2); } if ( isset($_POST['ssn3']) and !preg_match('/^[0-9]{4}$/', $_POST['ssn3']) ) { $ssn3 = $_POST['ssn3']; $ssn_error = "SSN is missing or invalid"; $driver_err = 1; update_err = 1; } elseif ( isset($_POST['ssn3']) ) { $ssn3 = $_POST['ssn3']; } elseif ( strlen(substr(mysql_result($r, 0, 'drivers.ssn'), 5, 4)) != 4 ) { $ssn3 = substr(mysql_result($r, 0, 'drivers.ssn'), 5, 4); $ssn_error = "SSN is missing or invalid"; $driver_err = 1; } else { $ssn3 = substr(mysql_result($r, 0, 'drivers.ssn'), 5, 4); } if ( empty($found_files[ssn]) ) { $ssn_file_error = "Please upload a scan of the SSN"; }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.4.34
Parse error: syntax error, unexpected '=' in /in/eAqZq on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '=' in /in/eAqZq on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/eAqZq on line 3
Process exited with code 255.