3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
Fatal error: Using $this when not in object context in /in/VeR7n on line 4
Process exited with code 255.

preferences:
140.54 ms | 402 KiB | 269 Q