3v4l.org

run code in 300+ PHP versions simultaneously
<?php Include('connect.php') if(isset($_REQUEST['submit'])!='') { if($_REQUEST['name']=='' || $_REQUEST['email']=='' || $_REQUEST['password']==''|| $_REQUEST['repassword']=='') { Echo "please fill the empty field."; } if (preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/', $email)) { if (preg_match('/^[a-z\d_]{2,20}$/i', $name)){ // Usename min 2 char max 20 char if (preg_match("/^[a-z0-9_-]{6,20}$/i", $password)){ if($_REQUEST['repassword']==$_REQUEST['password']){ // Password min 6 char max 20 char $sql="insert into users(name,email,password) values('".$_REQUEST['name']."', '".$_REQUEST['email']."', '".$_REQUEST['password']."')"; $res=mysql_query($sql); if($res) { Echo "Record successfully inserted"; } Else { Echo "There is some problem in inserting record"; } } } } }else{ Echo 'Please enter valid data.'; } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.270.0080.03612.36
5.4.260.0070.03712.36
5.4.250.0060.03612.36
5.4.240.0050.03712.36
5.4.230.0060.03812.36
5.4.220.0050.03712.36
5.4.210.0070.03312.36
5.4.200.0060.03812.36
5.4.190.0070.03312.35
5.4.180.0050.03712.35
5.4.170.0060.03512.36
5.4.160.0060.03612.35
5.4.150.0050.03612.35
5.4.140.0040.03812.04
5.4.130.0060.03512.02
5.4.120.0070.05111.98
5.4.110.0050.03811.98
5.4.100.0070.04611.98
5.4.90.0060.05111.98
5.4.80.0080.04911.98
5.4.70.0050.04511.97
5.4.60.0050.03511.97
5.4.50.0080.03311.98
5.4.40.0050.04611.96
5.4.30.0060.04011.96
5.4.20.0040.03811.96
5.4.10.0050.03611.96
5.4.00.0040.03911.45
5.3.280.0100.03512.71
5.3.270.0070.04612.72
5.3.260.0060.04412.72
5.3.250.0050.04112.72
5.3.240.0060.05312.72
5.3.230.0070.04712.71
5.3.220.0050.03912.68
5.3.210.0050.04512.68
5.3.200.0030.04212.68
5.3.190.0050.03712.68
5.3.180.0040.03712.67
5.3.170.0030.03912.67
5.3.160.0050.03712.68
5.3.150.0060.03712.68
5.3.140.0090.03412.66
5.3.130.0040.04112.65
5.3.120.0070.03712.65
5.3.110.0050.03812.66
5.3.100.0080.03312.11
5.3.90.0070.03512.08
5.3.80.0050.03812.08
5.3.70.0050.03812.07
5.3.60.0050.03712.06
5.3.50.0060.03612.00
5.3.40.0070.03512.00
5.3.30.0040.03511.94
5.3.20.0060.03411.70
5.3.10.0080.03311.66
5.3.00.0070.04311.64

preferences:
139.69 ms | 1394 KiB | 7 Q