3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['submit']) && isset($_POST['rid']) && !empty($_POST['rid'])) { $location = 'http://results.vtu.ac.in/vitavi.php'; $userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)'; $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_URL, $location ); $post_array = array( "rid" => $_POST['rid'], "submit" => "SUBMIT" ); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_array); $response = curl_exec($ch); //change this to whatever... $extract = array("start" =>'<TD width="513">', "end"=>'<b>REGISTRAR(EVALUATION)</b>'); $start = stripos($response, $extract['start']); $end = stripos($response, $extract['end']); $response = substr($response, $start, $end); echo $response."<br/>"; $start = '<TD width="513">'; $end = '<br>'; $response = strstr($response, $start); $end = stripos($response, $end); $response = substr($response, strlen($start), $end - strlen($start)); echo $response."<br/>"; } ?> <html> <form name="new" method="POST"> <p>Enter the University Seat No: <input type="TEXT" name="rid" size="20" maxlength="50"><br><br><br><br> <input type="SUBMIT" name="submit" value="SUBMIT" align="center"><br></p> </form> </html> foreach($xml->xpath('//product[starts-with(name/text(),"Shirt 12")]') as $product) { echo $product->mathamatics; echo "\n"; echo $product->price; echo "\n"; echo $product->color; echo "\n\n"; }

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.0170.00318.55
8.3.50.0120.00721.07
8.3.40.0120.00318.66
8.3.30.0040.01119.13
8.3.20.0070.00020.30
8.3.10.0040.00421.92
8.3.00.0080.00022.51
8.2.180.0090.00616.38
8.2.170.0170.00322.96
8.2.160.0120.00319.27
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.54
8.2.110.0000.00922.18
8.2.100.0000.01219.28
8.2.90.0080.00019.13
8.2.80.0000.00817.97
8.2.70.0090.00017.46
8.2.60.0050.00318.05
8.2.50.0070.00318.07
8.2.40.0050.00318.16
8.2.30.0040.00418.23
8.2.20.0040.00417.66
8.2.10.0000.00817.61
8.2.00.0080.00317.67
8.1.280.0120.00625.92
8.1.270.0050.01022.08
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00323.87
8.1.230.0090.00319.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0040.00417.40
8.1.180.0050.00318.80
8.1.170.0000.00818.50
8.1.160.0030.00322.19
8.1.150.0000.00718.50
8.1.140.0030.00617.31
8.1.130.0000.00717.72
8.1.120.0000.00817.45
8.1.110.0000.00817.44
8.1.100.0040.00417.38
8.1.90.0040.00417.43
8.1.80.0000.00717.41
8.1.70.0050.00317.32
8.1.60.0080.00017.55
8.1.50.0000.00817.59
8.1.40.0050.00317.39
8.1.30.0050.00317.50
8.1.20.0060.00317.52
8.1.10.0050.00217.60
8.1.00.0120.00017.47
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0030.00318.30
8.0.270.0030.00317.23
8.0.260.0030.00316.90
8.0.250.0060.00016.89
8.0.240.0030.00616.84
8.0.230.0000.00716.88
8.0.220.0070.00016.92
8.0.210.0040.00416.76
8.0.200.0030.00316.98
8.0.190.0070.00016.98
8.0.180.0000.00716.96
8.0.170.0000.00816.96
8.0.160.0080.00016.75
8.0.150.0000.00716.73
8.0.140.0040.00416.84
8.0.130.0000.00613.29
8.0.120.0030.00516.75
8.0.110.0040.00416.79
8.0.100.0040.00416.75
8.0.90.0000.00716.66
8.0.80.0070.01116.79
8.0.70.0000.00816.78
8.0.60.0050.00316.90
8.0.50.0040.00416.94
8.0.30.0090.01117.17
8.0.20.0080.01017.40
8.0.10.0080.00016.84
8.0.00.0110.00716.88
7.4.330.0030.00315.00
7.4.320.0000.00716.48
7.4.300.0000.00816.39
7.4.290.0030.00316.46
7.4.280.0040.00416.61
7.4.270.0000.00716.59
7.4.260.0030.00316.43
7.4.250.0040.00416.44
7.4.240.0020.00516.54
7.4.230.0000.00716.30
7.4.220.0110.01116.52
7.4.210.0060.01116.54
7.4.200.0070.00016.60
7.4.190.0030.00516.68
7.4.160.0110.00716.66
7.4.150.0120.00517.40
7.4.140.0110.00817.86
7.4.130.0090.00916.56
7.4.120.0110.00616.53
7.4.110.0090.00616.47
7.4.100.0050.01316.58
7.4.90.0100.01016.57
7.4.80.0030.01919.39
7.4.70.0090.00916.30
7.4.60.0030.01616.46
7.4.50.0040.00416.29
7.4.40.0040.01122.77
7.4.30.0060.00916.71
7.4.00.0070.00914.92
7.3.330.0000.00513.15
7.3.320.0050.00013.05
7.3.310.0030.00316.22
7.3.300.0030.00316.07
7.3.290.0050.01316.19
7.3.280.0060.01216.23
7.3.270.0130.00317.40
7.3.260.0080.01016.32
7.3.250.0110.00516.37
7.3.240.0100.00716.46
7.3.230.0090.00916.52
7.3.210.0060.01016.52
7.3.200.0000.01619.39
7.3.190.0060.01116.17
7.3.180.0100.00716.22
7.3.170.0070.01016.29
7.3.160.0150.00716.47
7.3.120.0080.00814.76
7.3.110.0060.01014.70
7.3.100.0100.00714.79
7.3.90.0120.00214.68
7.3.80.0060.01014.67
7.3.70.0090.00414.69
7.3.60.0080.00614.83
7.3.50.0030.01414.69
7.3.40.0030.01014.76
7.3.30.0080.00514.80
7.3.20.0080.00616.48
7.3.10.0080.00416.58
7.3.00.0050.01116.71
7.2.330.0110.00616.69
7.2.320.0130.00616.48
7.2.310.0090.01316.54
7.2.300.0070.01116.38
7.2.290.0120.00916.35
7.2.250.0080.01115.11
7.2.240.0090.00914.87
7.2.230.0110.00514.98
7.2.220.0080.00915.02
7.2.210.0070.00714.87
7.2.200.0080.00514.86
7.2.190.0070.00614.97
7.2.180.0090.00614.95
7.2.170.0050.00715.02
7.2.00.0220.01419.34
7.1.330.0020.01215.68
7.1.320.0080.00615.69
7.1.310.0070.00715.79
7.1.300.0020.01515.67
7.1.290.0050.01015.47
7.1.280.0110.00115.66
7.1.270.0050.00715.79
7.1.260.0060.00815.56
7.1.100.0060.00918.17
7.1.70.0000.00916.88
7.1.60.0090.01519.82
7.1.50.0100.01416.87
7.1.00.0000.03722.48
7.0.200.0630.00614.51
7.0.140.0100.07022.09
7.0.60.0100.04021.75
7.0.50.0100.04017.83
7.0.40.0030.05020.05
7.0.30.0270.07720.18
7.0.20.0370.07319.99
7.0.10.0030.06020.00
7.0.00.0100.03720.19
5.6.280.0000.07721.09
5.6.210.0070.07320.48
5.6.200.0070.08318.08
5.6.190.0000.04720.33
5.6.180.0370.06720.60
5.6.170.0370.07020.41
5.6.160.0000.04320.33
5.6.150.0030.05018.24
5.6.140.0130.06718.16
5.6.130.0030.06018.18
5.6.120.0070.08020.99
5.6.110.0030.08721.13
5.6.100.0030.08320.92
5.6.90.0130.07321.03
5.6.80.0130.04720.50
5.5.350.0070.08020.43
5.5.340.0130.07317.98
5.5.330.0100.05720.06
5.5.320.0230.04320.18
5.5.310.0170.05020.21
5.5.300.0070.07317.90
5.5.290.0070.03717.95
5.5.280.0170.07320.89
5.5.270.0030.09020.80
5.5.260.0100.08320.88
5.5.250.0030.04720.56
5.5.240.3930.04020.18
5.4.450.0030.08019.11
5.4.440.0100.07719.41
5.4.430.0070.04019.42
5.4.420.0030.08019.41
5.4.410.0070.07319.29
5.4.400.0030.06018.89
5.4.390.0000.08318.88
5.4.380.0070.06319.10
5.4.370.0130.04319.24
5.4.360.0030.06719.09
5.4.350.0030.07719.08
5.4.340.0030.07719.13
5.4.320.0030.06719.25
5.4.310.0100.06719.09
5.4.300.0100.03318.93
5.4.290.0030.05319.08
5.4.280.0130.05718.80
5.4.270.0100.06718.88
5.4.260.0070.07718.81
5.4.250.0070.06319.07
5.4.240.0030.08019.12
5.4.230.0070.06019.08
5.4.220.0070.06019.07
5.4.210.0000.05719.15
5.4.200.0070.07319.23
5.4.190.0030.04719.07
5.4.180.0130.06019.12
5.4.170.0000.08019.07
5.4.160.0030.04719.07
5.4.150.0070.05318.90
5.4.140.0030.07316.50
5.4.130.0100.07016.31
5.4.120.0070.06716.26
5.4.110.0130.05316.39
5.4.100.0000.06716.07
5.4.90.0070.04716.07
5.4.80.0000.07716.38
5.4.70.0000.08016.48
5.4.60.0030.05716.45
5.4.50.0070.05016.03
5.4.40.0070.04316.43
5.4.30.0030.07016.36
5.4.20.0030.06316.27
5.4.10.0000.06316.27
5.4.00.0070.04715.90
5.3.290.0330.04014.47
5.3.280.0000.07714.47
5.3.270.0000.06014.45
5.3.260.0070.05314.46
5.3.250.0000.05014.57
5.3.240.0000.07714.66
5.3.230.0000.08314.64
5.3.220.0100.07014.61
5.3.210.0000.07314.52
5.3.200.0030.05314.43
5.3.190.0030.07714.41
5.3.180.0030.05714.61
5.3.170.0030.07314.56
5.3.160.0100.07014.67
5.3.150.0030.07314.67
5.3.140.0070.07714.60
5.3.130.0030.07314.54
5.3.120.0030.08014.40
5.3.110.0030.06314.42
5.3.100.0000.07713.93
5.3.90.0030.07014.13
5.3.80.0070.07013.98
5.3.70.0000.07313.81
5.3.60.0070.05313.89
5.3.50.0070.05714.05
5.3.40.0030.07313.87
5.3.30.0070.05013.84
5.3.20.0000.05713.49
5.3.10.0070.05013.57
5.3.00.0030.04013.70
5.2.170.0070.05713.28
5.2.160.0000.06713.28
5.2.150.0000.06713.28
5.2.140.0030.04013.28
5.2.130.0030.06013.28
5.2.120.0070.05313.28
5.2.110.0030.03713.28
5.2.100.0030.06013.28
5.2.90.0030.03013.28
5.2.80.0000.05313.28
5.2.70.0030.05713.28
5.2.60.0030.06013.28
5.2.50.0100.04013.28
5.2.40.0000.04713.28
5.2.30.0070.03313.28
5.2.20.0000.04713.28
5.2.10.0070.04713.28
5.2.00.0000.06013.28
5.1.60.0000.05713.28
5.1.50.0070.02013.28
5.1.40.0030.03713.28
5.1.30.0070.03313.28
5.1.20.0000.03713.28
5.1.10.0070.02713.28
5.1.00.0030.04713.28
5.0.50.0030.02013.28
5.0.40.0000.02013.28
5.0.30.0070.02313.28
5.0.20.0000.02013.28
5.0.10.0070.01313.28
5.0.00.0000.03013.28
4.4.90.0000.02313.28
4.4.80.0000.03713.28
4.4.70.0030.02713.28
4.4.60.0030.02013.28
4.4.50.0000.03713.28
4.4.40.0000.03013.28
4.4.30.0030.03013.28
4.4.20.0000.03013.28
4.4.10.0000.02013.28
4.4.00.0000.02713.28
4.3.110.0030.01313.28
4.3.100.0030.01313.28
4.3.90.0000.01313.28
4.3.80.0000.02713.28
4.3.70.0000.01313.28
4.3.60.0000.01713.28
4.3.50.0000.01713.28
4.3.40.0000.02313.28
4.3.30.0000.01313.28
4.3.20.0030.01313.28
4.3.10.0030.01313.28
4.3.00.0000.01713.28

preferences:
56.19 ms | 400 KiB | 5 Q