3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("chinmay", $con) or die("ERROR"); if(isset($_REQUEST['submit'])){ $name=$_POST['name']; $email=$_POST['email']; $sql=" SELECT * FROM users WHERE fname like '%".$name."%' OR user_email ='%".$email."%'"; $q=mysql_query($sql); } else{ $sql="SELECT * FROM users"; $q=mysql_query($sql); } ?> <form method="post"> <table width="200" border="1"> <tr> <td>Name</td> <td><input type="text" name="name" value="<?php echo $name;?>" /></td> <td>Email</td> <td><input type="text" name="email" value="<?php echo $email;?>" /></td> <td><input type="submit" name="submit" value=" Find " /></td> </tr> </table> </form> <table> <tr> <td>Name</td> <td>Email</td> <td>Address</td> </tr> <?php while($res=mysql_fetch_array($q)){ ?> <tr> <td><?php echo $res['fname'].' '.$res['lname'];?></td> <td><?php echo $res['user_email'];?></td> <td><?php echo $res['address'];?></td> </tr> <?php }?> </table>

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)
8.3.60.0120.00618.30
8.3.50.0150.00221.15
8.3.40.0120.00318.99
8.3.30.0030.01020.27
8.3.20.0070.00020.20
8.3.10.0060.00321.83
8.3.00.0070.00022.46
8.2.180.0070.01416.63
8.2.170.0150.00622.96
8.2.160.0030.01022.07
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0080.00020.93
8.2.110.0080.00020.52
8.2.100.0110.00017.91
8.2.90.0040.00419.05
8.2.80.0000.00819.21
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0000.00719.46
8.2.20.0040.00417.68
8.2.10.0030.00617.71
8.2.00.0000.00817.68
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0060.00323.97
8.1.230.0000.01219.21
8.1.220.0120.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00617.13
8.1.190.0050.00317.30
8.1.180.0040.00418.76
8.1.170.0050.00318.55
8.1.160.0040.00418.79
8.1.150.0040.00418.46
8.1.140.0070.00017.21
8.1.130.0030.00317.84
8.1.120.0080.00017.35
8.1.110.0040.00417.35
8.1.100.0050.00217.34
8.1.90.0000.00717.35
8.1.80.0070.00017.25
8.1.70.0040.00417.27
8.1.60.0030.00617.43
8.1.50.0040.00417.41
8.1.40.0040.00417.48
8.1.30.0000.00817.54
8.1.20.0030.00517.60
8.1.10.0030.00617.57
8.1.00.0000.00817.48
8.0.300.0000.00818.77
8.0.290.0080.00017.04
8.0.280.0000.00718.29
8.0.270.0040.00417.26
8.0.260.0000.00616.73
8.0.250.0060.00016.98
8.0.240.0050.00316.96
8.0.230.0030.00316.94
8.0.220.0000.00716.94
8.0.210.0000.00716.93
8.0.200.0030.00316.99
8.0.190.0000.00717.03
8.0.180.0060.00316.94
8.0.170.0050.00316.92
8.0.160.0070.00017.03
8.0.150.0050.00316.93
8.0.140.0070.00016.85
8.0.130.0070.00013.31
8.0.120.0080.00016.91
8.0.110.0070.00016.78
8.0.100.0000.00716.90
8.0.90.0040.00416.79
8.0.80.0100.01016.96
8.0.70.0000.00816.99
8.0.60.0070.00016.87
8.0.50.0030.00616.91
8.0.30.0120.00717.07
8.0.20.0090.00917.40
8.0.10.0040.00417.05
8.0.00.0140.00316.72
7.4.330.0000.00615.00
7.4.320.0030.00316.32
7.4.300.0030.00316.57
7.4.290.0070.00016.55
7.4.280.0030.00316.60
7.4.270.0070.00016.55
7.4.260.0000.00513.26
7.4.250.0050.00316.52
7.4.240.0010.00616.46
7.4.230.0030.00316.62
7.4.220.0130.01516.55
7.4.210.0070.00816.53
7.4.200.0070.00016.55
7.4.190.0030.00316.62
7.4.160.0090.01316.65
7.4.150.0180.00017.40
7.4.140.0140.00517.86
7.4.130.0100.01016.49
7.4.120.0100.01016.37
7.4.110.0060.01216.46
7.4.100.0140.00316.51
7.4.90.0130.00416.42
7.4.80.0130.00719.39
7.4.70.0090.01116.62
7.4.60.0070.01116.36
7.4.50.0050.00316.60
7.4.40.0040.01222.77
7.4.30.0140.00316.67
7.4.00.0050.01114.97
7.3.330.0000.00513.22
7.3.320.0000.00513.12
7.3.310.0040.00416.34
7.3.300.0000.00616.31
7.3.290.0030.01016.32
7.3.280.0060.01116.30
7.3.270.0100.01317.40
7.3.260.0000.01716.48
7.3.250.0070.01416.39
7.3.240.0110.00916.33
7.3.230.0090.00616.43
7.3.210.0100.00716.50
7.3.200.0030.01519.39
7.3.190.0090.01216.51
7.3.180.0080.00916.30
7.3.170.0060.00916.45
7.3.160.0060.01316.60
7.3.120.0060.01014.65
7.3.110.0070.01014.79
7.3.100.0000.01414.99
7.3.90.0090.00614.89
7.3.80.0040.01214.97
7.3.70.0060.01214.80
7.3.60.0060.00614.94
7.3.50.0000.01314.55
7.3.40.0040.01114.72
7.3.30.0000.00814.92
7.3.20.0070.00716.70
7.3.10.0090.00316.57
7.3.00.0070.00716.33
7.2.330.0130.00616.57
7.2.320.0100.00716.59
7.2.310.0040.01816.56
7.2.300.0130.01016.34
7.2.290.0090.01316.23
7.2.250.0070.01114.56
7.2.240.0090.00914.86
7.2.230.0130.00614.70
7.2.220.0060.00915.01
7.2.210.0060.01315.09
7.2.200.0040.01215.01
7.2.190.0060.00614.88
7.2.180.0000.01514.84
7.2.170.0040.01414.75
7.2.60.0090.00616.84
7.2.00.0070.01019.20
7.1.330.0070.01015.65
7.1.320.0150.00015.50
7.1.310.0080.00415.50
7.1.300.0090.00615.52
7.1.290.0060.00315.62
7.1.280.0040.01115.66
7.1.270.0000.01515.21
7.1.260.0070.00715.73
7.1.200.0060.00615.54
7.1.100.0040.00818.30
7.1.70.0030.00517.00
7.1.60.0070.01719.32
7.1.50.0030.01716.82
7.1.00.0030.03322.24
7.0.200.0610.00914.71
7.0.140.0030.07322.11
7.0.100.0130.07719.98
7.0.90.0100.04320.03
7.0.80.0100.08020.00
7.0.70.0100.08319.90
7.0.60.0070.08319.91
7.0.50.0230.08320.37
7.0.40.0070.08020.10
7.0.30.0100.08020.15
7.0.20.0070.06720.11
7.0.10.0200.06720.00
7.0.00.0100.08719.94
5.6.280.0070.07021.00
5.6.250.0130.07020.61
5.6.240.0100.06720.67
5.6.230.0070.09320.68
5.6.220.0130.04320.66
5.6.210.0130.08020.61
5.6.200.0100.08721.03
5.6.190.0130.08321.05
5.6.180.0130.07320.97
5.6.170.0070.08021.01
5.6.160.0130.06720.96
5.6.150.0170.07321.10
5.6.140.0170.05321.01
5.6.130.0100.08721.18
5.6.120.0070.07320.91
5.6.110.0030.09321.07
5.6.100.0170.07020.94
5.6.90.0070.07721.01
5.6.80.0000.08020.47
5.6.70.0200.07020.49
5.6.60.0170.04320.45
5.6.50.0170.06720.39
5.6.40.0170.07320.50
5.6.30.0000.08320.40
5.6.20.0100.07320.45
5.6.10.0130.07020.39
5.6.00.0130.07320.37
5.5.380.0130.07320.37
5.5.370.0100.08320.36
5.5.360.0130.03720.56
5.5.350.0070.07020.38
5.5.340.0100.08020.81
5.5.330.0070.06020.93
5.5.320.0100.07320.84
5.5.310.0070.07020.74
5.5.300.0070.08720.77
5.5.290.0030.05020.78
5.5.280.0100.08720.88
5.5.270.0130.07020.77
5.5.260.0070.08720.82
5.5.250.0130.08020.66
5.5.240.0100.07720.16
5.5.230.0230.06320.21
5.5.220.0070.07720.24
5.5.210.0100.07320.32
5.5.200.0070.07720.20
5.5.190.0030.08320.20
5.5.180.0070.07720.00
5.5.160.0100.08020.25
5.5.150.0170.07020.09
5.5.140.0130.07319.98
5.5.130.0100.06720.22
5.5.120.0000.08320.29
5.5.110.0100.07720.27
5.5.100.0030.06319.99
5.5.90.0030.08020.16
5.5.80.0100.07720.07
5.5.70.0030.08320.13
5.5.60.0100.07720.16
5.5.50.0070.07320.13
5.5.40.0070.07020.10
5.5.30.0070.07320.09
5.5.20.0100.07319.96
5.5.10.0130.07320.06
5.5.00.0070.06720.14
5.4.450.0030.08319.12
5.4.440.0000.08319.45
5.4.430.0130.07319.44
5.4.420.0100.07319.27
5.4.410.0000.08719.01
5.4.400.0030.06019.15
5.4.390.0100.07019.03
5.4.380.0100.07319.12
5.4.370.0070.07018.79
5.4.360.0130.07319.06
5.4.350.0070.07018.90
5.4.340.0100.07718.96
5.4.320.0070.07718.95
5.4.310.0100.05319.06
5.4.300.0100.06319.09
5.4.290.0030.08018.78
5.4.280.0200.07019.09
5.4.270.0100.07318.96
5.4.260.0030.08319.16
5.4.250.0070.07319.00
5.4.240.0030.07319.14
5.4.230.0070.04319.02
5.4.220.0070.07318.94
5.4.210.0070.07719.05
5.4.200.0070.07319.09
5.4.190.0100.06718.78
5.4.180.0200.06318.78
5.4.170.0030.08019.12
5.4.160.0100.07019.00
5.4.150.0130.04019.11
5.4.140.0170.06716.29
5.4.130.0030.07716.08
5.4.120.0100.07016.24
5.4.110.0130.04716.26
5.4.100.0070.07016.25
5.4.90.0070.07316.44
5.4.80.0100.07016.20
5.4.70.0030.07316.31
5.4.60.0070.07316.36
5.4.50.0070.07016.33
5.4.40.0070.04316.47
5.4.30.0030.07316.23
5.4.20.0100.07316.38
5.4.10.0070.07016.30
5.4.00.0070.06715.70
5.3.290.0100.07714.52
5.3.280.0100.07714.59
5.3.270.0100.06714.60
5.3.260.0030.05314.61
5.3.250.0000.08314.61
5.3.240.0070.07714.44
5.3.230.0070.06314.61
5.3.220.0070.07014.41
5.3.210.0070.08014.59
5.3.200.0070.08014.43
5.3.190.0030.08314.55
5.3.180.0100.04714.56
5.3.170.0070.08014.43
5.3.160.0030.04714.48
5.3.150.0130.06714.57
5.3.140.0070.05014.40
5.3.130.0100.07314.47
5.3.120.0130.07014.54
5.3.110.0070.07014.40
5.3.100.0130.06314.05
5.3.90.0100.07313.94
5.3.80.0100.07314.01
5.3.70.0130.07313.89
5.3.60.0200.06013.96
5.3.50.0100.07013.82
5.3.40.0170.06713.74
5.3.30.0000.05713.91
5.3.20.0070.07313.70
5.3.10.0030.05713.58
5.3.00.0070.05313.59
5.2.170.0070.06011.00
5.2.160.0030.06311.22
5.2.150.0070.06711.21
5.2.140.0070.06311.18
5.2.130.0030.06311.11
5.2.120.0000.06310.91
5.2.110.0030.06011.11
5.2.100.0070.05711.16
5.2.90.0100.05711.12
5.2.80.0030.06011.14
5.2.70.0030.06310.95
5.2.60.0130.05711.01
5.2.50.0070.06311.02
5.2.40.0030.06010.82
5.2.30.0030.06310.98
5.2.20.0100.05310.83
5.2.10.0000.06710.92
5.2.00.0030.06310.79
5.1.60.0000.06010.02
5.1.50.0070.05310.04
5.1.40.0070.0539.98
5.1.30.0070.05710.41
5.1.20.0070.04310.22
5.1.10.0000.05310.11
5.1.00.0070.0439.91
5.0.50.0030.0478.56
5.0.40.0070.0438.49
5.0.30.0070.0678.49
5.0.20.0030.0438.49
5.0.10.0030.0308.49
5.0.00.0070.0608.49
4.4.90.0000.0308.49
4.4.80.0000.0238.49
4.4.70.0030.0378.49
4.4.60.0030.0378.49
4.4.50.0000.0378.49
4.4.40.0070.0508.49
4.4.30.0100.0238.49
4.4.20.0030.0378.49
4.4.10.0100.0208.49
4.4.00.0030.0478.49
4.3.110.0000.0378.49
4.3.100.0070.0238.49
4.3.90.0030.0278.49
4.3.80.0030.0438.49
4.3.70.0030.0308.49
4.3.60.0070.0378.49
4.3.50.0000.0378.49
4.3.40.0000.0538.49
4.3.30.0000.0438.49
4.3.20.0030.0208.49
4.3.10.0030.0378.49
4.3.00.0000.0208.49

preferences:
42.9 ms | 401 KiB | 5 Q