3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(strlen($_POST["user"])>9){ if(strpos(' '.$_POST["user"], '+')<1){ $number='+'.(int)$_POST["user"]; }else{ $number=$_POST["user"]; } }else{ echo 0;exit; } $new_code=ss_sql("select sms_text from `sms_codes` where sms_number='".$number."' or sms_number='".(int)$number."' order by id_sms_code DESC limit 0,1"); $myuser=ss_sql("select user_id from `user` where (phone='".$number."' or phone="'.(int)$number."' ) and phone_verify=1 order by user_id DESC limit 0,1"); if($new_code<10){echo 0;exit;} if($myuser<10){echo 0;exit;} $pass=hash('sha256', $new_code); mysql_query("update `user` set pass='".$pass."' where user_id=".(int)$myuser); $text=get_text("sms_pass").$new_code; send_sms($number, "timebooka.com: ".$text, $smsapi); echo 1; ?>
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected ''.(int)$number."'' (T_CONSTANT_ENCAPSED_STRING) in /in/sMaDV on line 13
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/sMaDV on line 13
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 T_CONSTANT_ENCAPSED_STRING in /in/sMaDV on line 13
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/sMaDV on line 13
Process exited with code 255.