3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $form=array(); $form['first_name']=$this->input->post("first_name",true); $form['last_name']=$this->input->post("last_name",true); $form['dob']=date('Y-m-d',strtotime($this->input->post("dob",true))); $form['email_id']=$this->input->post("email_id",true); $form['password']=sha1($this->input->post("password",true)); $form['sex']=$this->input->post("sex",true); $form['phone']=$this->input->post("phone",true); $form['about_me']=$this->input->post("about_me",true); $form['fav_activity']=$this->input->post("activities",true); $form['help_others']=$this->input->post("help_other",true); $form['wish_country']=$this->input->post("wish_city",true); $form['country']=$this->input->post("country_name",true); $form['state']=$this->input->post("state_id",true); $form['city']=$this->input->post("city_id",true); $form['addline1']=$this->input->post("addressline1",true); $form['addline2']=$this->input->post("addressline2",true); $form['zip']=$this->input->post("zip",true); var_dump($form);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/VeR7n:4 Stack trace: #0 {main} thrown in /in/VeR7n on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Using $this when not in object context in /in/VeR7n on line 4
Process exited with code 255.