3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('ROOT',1); ini_set('display_errors',1); set_time_limit(0); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>ASIN Lookup tool</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <style type="text/css"> body { font:12px/1.4em Verdana, sans-serif; color:#333; background-color:#fff; width:700px; margin:50px auto; padding:0; } a { color:#326EA1; text-decoration:underline; padding:0 1px; } a:hover { background-color:#333; color:#fff; text-decoration:none; } div.header { border-bottom:1px solid #999; } div.item { padding:5px 0; border-bottom:1px solid #999; } </style> </head> <body> <div> <?php if(!empty($_POST['start_bulk'])){ if($_FILES['asin']['error']!=0)echo 'Failed to upload file'; else{ if(!empty($_POST['site']))$site=$_POST['site']; else $site="com"; if(!empty($_POST['idtype']))$idtype=$_POST['idtype']; else $idtype="ASIN"; $email=$_POST['email']; @unlink(dirname(__FILE__)."/input.csv"); $res=move_uploaded_file($_FILES['asin']['tmp_name'],dirname(__FILE__)."/input.csv"); if(!$res)echo 'Failed to upload file'; else{ if(!empty($_POST['inline']))echo '<table cellpadding="5" cellspacing="5" style="border-collapse: collapse" border="1">'; include(dirname(__FILE__).'/converter.php'); if(!empty($_POST['inline']))echo '</table>'; if(!empty($email))echo '<h4 style="color:green" id="res">Check your email for the output. In some cases Email may go in spam folder</h4>'; else echo '<h4 style="color:green" id="res"><a href="output-conversion.csv">Download csv</a></h4>'; } } } else if(!empty($_POST['start_manual']) && !empty($_POST['asin'])){ if(!empty($_POST['site']))$site=$_POST['site']; else $site="com"; if(!empty($_POST['idtype']))$idtype=$_POST['idtype']; else $idtype="ASIN"; $email=$_POST['email']; @unlink(dirname(__FILE__)."/input.csv"); file_put_contents(dirname(__FILE__)."/input.csv", $_POST['asin']); if(!empty($_POST['inline']))echo '<table cellpadding="5" cellspacing="5" style="border-collapse: collapse" border="1">'; include(dirname(__FILE__).'/converter.php'); if(!empty($_POST['inline']))echo '</table>'; if(!empty($email))echo '<h4 style="color:green" id="res">Check your email for the output. In some cases Email may go in spam folder</h4>'; else echo '<h4 style="color:green" id="res"><a href="output-conversion.csv">Download csv</a></h4>'; } ?> <h3>ASIN lookup tool (Bulk)</h3> <hr/> <h4>After submitting check your email for the output. In some cases Email may go in spam folder</h4> <form method="post" action="" enctype="multipart/form-data"> <table cellpadding="5" cellspacing="5"> <tr><td><label>Choose IdType</label></td><td><select name="idtype"><option value="ASIN">ASIN</option><option value="EAN">EAN-13</option><option value="UPC">UPC</option><option value="ISBN">ISBN-10</option></select></td></tr> <tr><td><label>Choose site</label></td><td><select name="site"><option value="com">com</option><option value="fr">fr</option><option value="de">de</option><option value="co.uk">uk</option><option value="ca">ca</option><option value="co.jp" selected="selected">co.jp</option></select></td></tr> <tr><td><label>ASIN input</label></td><td><input type="file" name="asin"/></td></tr> <tr><td><label>Email address to recieve output</label><br/><small>If this field is empty then output<br/> link will be shown</small></td><td><input type="text" name="email" size="32"/></td></tr> <tr><td><label>Display output inline</label></td><td><input type="checkbox" name="inline"/></td></tr> <input type="hidden" name="start_bulk" value="1" /> <tr><td colspan="2"><input type="submit" value="Submit"/></td></tr> </table> </form> <h3>ASIN lookup tool (Manual)</h3> <hr/> <form method="post" action=""> <table cellpadding="5" cellspacing="5"> <tr><td><label>Choose IdType</label></td><td><select name="idtype"><option value="ASIN">ASIN</option><option value="EAN">EAN-13</option><option value="UPC">UPC</option><option value="ISBN">ISBN-10</option></select></td></tr> <tr><td><label>Choose site</label></td><td><select name="site"><option value="com">com</option><option value="fr">fr</option><option value="de">de</option><option value="co.uk">uk</option><option value="ca">ca</option><option value="co.jp" selected="selected">co.jp</option></select></td></tr> <tr><td><label>ASIN input</label></td><td><textarea name="asin" style="width: 200px; height: 250px"></textarea></td></tr> <tr><td><label>Email address to recieve output</label><br/><small>If this field is empty then output<br/> link will be shown</small></td><td><input type="text" name="email" size="32"/></td></tr> <tr><td><label>Display output inline</label></td><td><input type="checkbox" name="inline"/></td></tr> <input type="hidden" name="start_manual" value="1" /> <tr><td colspan="2"><input type="submit" value="Submit"/></td></tr> </table> </form> </div> </body> </html>

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.0000.01418.20
8.3.50.0070.01021.09
8.3.40.0040.01118.70
8.3.30.0110.00419.09
8.3.20.0040.00420.34
8.3.10.0040.00422.15
8.3.00.0080.00022.17
8.2.180.0090.00616.88
8.2.170.0140.00022.96
8.2.160.0000.01520.43
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0190.00026.16
8.2.120.0050.00519.54
8.2.110.0060.00320.39
8.2.100.0090.00317.78
8.2.90.0050.00319.31
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0050.00318.04
8.2.50.0030.00618.07
8.2.40.0000.00818.10
8.2.30.0000.00818.05
8.2.20.0070.00017.61
8.2.10.0060.00317.77
8.2.00.0040.00417.68
8.1.280.0120.00325.92
8.1.270.0060.00320.35
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00520.93
8.1.230.0060.00617.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.47
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0080.00018.83
8.1.160.0030.00718.88
8.1.150.0000.00718.55
8.1.140.0050.00317.47
8.1.130.0030.00317.90
8.1.120.0050.00217.52
8.1.110.0060.00317.46
8.1.100.0000.00817.50
8.1.90.0040.00417.45
8.1.80.0030.00617.50
8.1.70.0000.00717.33
8.1.60.0030.00517.57
8.1.50.0080.00017.54
8.1.40.0070.00017.41
8.1.30.0040.00417.50
8.1.20.0050.00317.70
8.1.10.0000.00717.55
8.1.00.0020.00517.53
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00318.32
8.0.270.0000.00817.25
8.0.260.0000.00816.86
8.0.250.0030.00317.00
8.0.240.0030.00516.96
8.0.230.0000.00716.94
8.0.220.0000.00716.88
8.0.210.0000.00716.95
8.0.200.0060.00016.84
8.0.190.0020.00516.96
8.0.180.0030.00516.97
8.0.170.0000.00716.87
8.0.160.0000.00716.92
8.0.150.0070.00016.80
8.0.140.0070.00016.73
8.0.130.0060.00013.31
8.0.120.0070.00115.10
8.0.110.0040.00315.08
8.0.100.0010.00615.08
8.0.90.0050.00215.02
8.0.80.0080.00515.11
8.0.70.0020.00615.08
8.0.60.0070.00115.14
8.0.50.0050.00315.09
8.0.30.0100.00515.69
8.0.20.0100.00616.05
8.0.10.0040.00415.22
8.0.00.0060.00815.65
7.4.330.0050.00015.00
7.4.320.0030.00316.43
7.4.300.0080.00016.52
7.4.290.0030.00316.57
7.4.280.0040.00416.50
7.4.270.0030.00316.46
7.4.260.0000.00716.59
7.4.250.0040.00414.89
7.4.240.0050.00315.49
7.4.230.0060.00114.86
7.4.220.0080.00514.95
7.4.210.0100.00715.67
7.4.200.0060.00215.00
7.4.190.0060.00215.01
7.4.180.0000.00613.46
7.4.160.0070.00414.96
7.4.150.0090.00315.36
7.4.140.0080.00816.35
7.4.130.0090.00615.43
7.4.120.0100.00615.44
7.4.110.0080.00514.87
7.4.100.0110.00414.93
7.4.90.0130.00314.79
7.4.80.0100.00316.30
7.4.70.0100.00314.95
7.4.60.0080.00914.91
7.4.50.0070.00014.79
7.4.40.0070.00617.92
7.4.30.0070.00614.81
7.4.20.0070.00013.14
7.4.10.0080.00013.20
7.4.00.0030.00614.14
7.3.330.0020.00213.11
7.3.320.0000.00613.15
7.3.310.0040.00414.69
7.3.300.0020.00514.58
7.3.290.0120.00014.62
7.3.280.0090.00815.50
7.3.270.0070.00615.25
7.3.260.0090.00614.82
7.3.250.0120.00315.18
7.3.240.0030.00914.63
7.3.230.0050.00914.87
7.3.220.0060.00313.00
7.3.210.0080.00514.73
7.3.200.0050.00716.25
7.3.190.0040.01114.73
7.3.180.0070.00514.74
7.3.170.0040.01014.71
7.3.160.0080.00414.70
7.3.150.0050.00413.01
7.3.140.0000.00712.96
7.3.130.0030.00313.11
7.3.120.0080.00213.84
7.3.110.0050.00312.91
7.3.100.0040.00413.02
7.3.90.0030.00313.30
7.3.80.0060.00012.93
7.3.70.0030.00313.23
7.3.60.0060.00013.31
7.3.50.0070.00013.12
7.3.40.0060.00013.22
7.3.30.0000.00613.29
7.3.20.0070.00014.98
7.3.10.0030.00314.83
7.3.00.0030.00314.89
7.2.340.0090.00413.18
7.2.330.0110.00514.84
7.2.320.0120.00814.70
7.2.310.0090.00614.76
7.2.300.0070.00814.92
7.2.290.0120.00314.94
7.2.280.0070.00713.12
7.2.270.0120.00013.09
7.2.260.0060.00713.20
7.2.250.0040.01013.17
7.2.240.0140.00213.28
7.2.230.0090.00313.14
7.2.220.0130.00013.03
7.2.210.0100.00313.09
7.2.200.0120.00413.34
7.2.190.0110.00413.32
7.2.180.0110.00313.22
7.2.170.0090.00413.43
7.2.160.0070.00513.43
7.2.150.0120.00315.07
7.2.140.0110.00415.24
7.2.130.0130.00015.18
7.2.120.0090.00315.15
7.2.110.0080.00515.18
7.2.100.0100.00315.15
7.2.90.0090.00615.23
7.2.80.0100.00315.23
7.2.70.0110.00315.22
7.2.60.0070.00515.91
7.2.50.0070.00715.21
7.2.40.0120.00015.23
7.2.30.0060.00615.23
7.2.20.0060.00615.22
7.2.10.0090.00415.00
7.2.00.0080.00615.24
7.1.330.0100.00214.13
7.1.320.0090.00313.94
7.1.310.0110.00014.14
7.1.300.0110.00014.16
7.1.290.0090.00314.15
7.1.280.0110.00013.97
7.1.270.0090.00314.00
7.1.260.0090.00214.18
7.1.250.0080.00414.08
7.1.240.0090.00214.08
7.1.230.0150.00013.97
7.1.220.0130.00014.10
7.1.210.0090.00314.02
7.1.200.0030.00714.86
7.1.190.0040.00813.96
7.1.180.0080.00414.05
7.1.170.0110.00014.01
7.1.160.0120.00014.08
7.1.150.0040.00813.84
7.1.140.0090.00314.09
7.1.130.0120.00013.90
7.1.120.0120.00013.98
7.1.110.0070.00514.11
7.1.100.0090.00314.06
7.1.90.0120.00014.03
7.1.80.0040.00813.86
7.1.70.0060.00415.36
7.1.60.0100.00816.94
7.1.50.0100.00615.43
7.1.40.0110.00014.09
7.1.30.0080.00414.15
7.1.20.0120.00013.87
7.1.10.0080.00413.92
7.1.00.0050.02018.11
7.0.330.0080.00413.81
7.0.320.0070.00413.96
7.0.310.0090.00414.06
7.0.300.0040.00813.88
7.0.290.0110.00313.88
7.0.280.0130.00014.02
7.0.270.0060.00814.00
7.0.260.0060.00613.83
7.0.250.0080.00414.16
7.0.240.0130.00014.04
7.0.230.0120.00213.97
7.0.220.0100.00313.91
7.0.210.0120.00014.14
7.0.200.0060.00415.26
7.0.190.0090.00513.85
7.0.180.0000.01214.00
7.0.170.0040.00814.15
7.0.160.0090.00313.83
7.0.150.0100.00414.04
7.0.140.0080.03718.06
7.0.130.0050.00714.09
7.0.120.0070.00514.03
7.0.110.0110.00313.94
7.0.100.0070.00713.96
7.0.90.0060.00613.89
7.0.80.0130.00013.96
7.0.70.2530.02316.91
7.0.60.0100.03216.99
7.0.50.0080.03115.85
7.0.40.0090.03816.90
7.0.30.0330.03517.09
7.0.20.0140.02116.98
7.0.10.0180.04217.01
7.0.00.0060.04217.11
5.6.400.0080.00412.72
5.6.390.0060.00612.51
5.6.380.0080.00412.55
5.6.370.0110.00012.35
5.6.360.0080.00512.57
5.6.350.0080.00412.58
5.6.340.0100.00312.70
5.6.330.0130.00012.60
5.6.320.0040.00812.75
5.6.310.0080.00412.44
5.6.300.0120.00012.49
5.6.290.0110.00012.44
5.6.280.0060.03816.70
5.6.270.0060.00612.57
5.6.260.0110.00012.46
5.6.250.0110.00012.57
5.6.240.0040.00812.68
5.6.230.0040.00712.67
5.6.220.0110.00012.81
5.6.210.0060.02116.64
5.6.200.0070.02515.47
5.6.190.0140.04016.57
5.6.180.0120.03716.62
5.6.170.0120.02516.49
5.6.160.0090.04516.58
5.6.150.0100.01715.45
5.6.140.0070.04315.37
5.6.130.0100.02015.51
5.6.120.0040.03416.82
5.6.110.0040.02516.77
5.6.100.0110.04116.79
5.6.90.0140.02216.93
5.6.80.0040.03316.43
5.6.70.0150.04216.47
5.6.60.0070.00412.66
5.6.50.0050.00512.52
5.6.40.0110.00012.81
5.6.30.0100.00012.63
5.6.20.0100.00012.53
5.6.10.0050.00512.74
5.6.00.0060.00412.36
5.5.380.0060.00612.58
5.5.370.0080.00212.49
5.5.360.0000.01212.40
5.5.350.0090.04316.44
5.5.340.0080.03015.23
5.5.330.0070.04116.38
5.5.320.0040.02716.19
5.5.310.0160.04116.23
5.5.300.0040.04815.19
5.5.290.0050.04215.31
5.5.280.0030.03916.71
5.5.270.0040.04616.71
5.5.260.0140.03716.71
5.5.250.0110.04116.75
5.5.240.0030.03316.36
5.5.230.0070.00412.53
5.5.220.0050.00512.45
5.5.210.0070.00312.59
5.5.200.0060.00612.24
5.5.190.0060.00612.31
5.5.180.0100.00012.55
5.5.170.0100.00012.34
5.5.160.0100.00012.40
5.5.150.0050.00512.50
5.5.140.0050.00512.30
5.5.130.0080.00312.10
5.5.120.0050.00512.24
5.5.110.0070.00412.46
5.5.100.0090.00212.69
5.5.90.0050.00512.55
5.5.80.0070.00312.42
5.5.70.0120.00012.74
5.5.60.0110.00012.60
5.5.50.0070.00412.37
5.5.40.0060.00612.45
5.5.30.0110.00012.65
5.5.20.0050.00512.58
5.5.10.0100.00012.66
5.5.00.0070.00412.49
5.4.450.0200.02515.95
5.4.440.0480.02716.13
5.4.430.0030.03316.05
5.4.420.0520.02616.01
5.4.410.0470.03015.84
5.4.400.0420.03315.73
5.4.390.0440.03015.85
5.4.380.0140.02815.59
5.4.370.0240.02415.51
5.4.360.0170.02515.43
5.4.350.0070.02212.25
5.4.340.0070.03812.22
5.4.330.0080.00312.45
5.4.320.0060.02012.48
5.4.310.0070.02012.59
5.4.300.0050.02512.52
5.4.290.0070.02112.48
5.4.280.0090.02212.46
5.4.270.0060.02212.39
5.4.260.0080.01912.36
5.4.250.0070.02715.67
5.4.240.0060.02915.57
5.4.230.0050.02815.58
5.4.220.0070.03015.67
5.4.210.0050.02815.57
5.4.200.0090.02515.47
5.4.190.0040.03115.58
5.4.180.0100.02315.58
5.4.170.0100.02515.64
5.4.160.0070.02815.50
5.4.150.0090.02815.59
5.4.140.0090.02514.34
5.4.130.0090.02814.43
5.4.120.0090.02314.46
5.4.110.0030.02914.47
5.4.100.0040.03914.50
5.4.90.0040.04314.55
5.4.80.0120.02214.43
5.4.70.0060.03214.49
5.4.60.0070.04214.61
5.4.50.0090.02314.51
5.4.40.0050.02814.49
5.4.30.0040.02914.54
5.4.20.0080.02514.45
5.4.10.0070.02814.46
5.4.00.0060.02614.00
5.3.290.0060.02512.97
5.3.280.0020.03213.83
5.3.270.0070.02713.72
5.3.260.0090.02413.72
5.3.250.0060.02813.78
5.3.240.0080.02613.61
5.3.230.0050.02913.83
5.3.220.0070.02513.71
5.3.210.0070.02713.74
5.3.200.0100.02313.61
5.3.190.0070.02713.59
5.3.180.0100.02313.91
5.3.170.0070.02713.76
5.3.160.0070.03713.76
5.3.150.0080.02613.84
5.3.140.0070.02713.65
5.3.130.0090.02713.85
5.3.120.0030.04113.70
5.3.110.0090.03013.80
5.3.100.0070.02713.61
5.3.90.0040.02913.57
5.3.80.0100.02513.31
5.3.70.0000.03313.34
5.3.60.0120.02213.38
5.3.50.0110.03313.49
5.3.40.0060.02913.34
5.3.30.0080.02413.18
5.3.20.0070.02513.21
5.3.10.0040.02713.12
5.3.00.0050.03013.10
5.2.170.0040.03311.59
5.2.160.0040.02211.64
5.2.150.0020.02411.52
5.2.140.0080.02311.49
5.2.130.0140.01311.33
5.2.120.0060.02011.54
5.2.110.0060.02111.40
5.2.100.0020.02411.55
5.2.90.0050.02111.46
5.2.80.0090.01911.47
5.2.70.0060.02211.46
5.2.60.0060.02111.35
5.2.50.0050.03311.37
5.2.40.0080.02111.41
5.2.30.0050.02111.31
5.2.20.0000.02811.33
5.2.10.0100.01811.29
5.2.00.0040.02411.24
5.1.60.0070.01510.48
5.1.50.0040.01810.34
5.1.40.0060.02010.68
5.1.30.0060.02510.81
5.1.20.0080.01610.66
5.1.10.0000.02410.63
5.1.00.0060.01810.56
5.0.50.0030.0179.56
5.0.40.0070.0159.56
5.0.30.0020.0239.37
5.0.20.0030.0159.35
5.0.10.0030.0159.33
5.0.00.0030.0229.38
4.4.90.0020.0128.55
4.4.80.0020.0128.55
4.4.70.0040.0108.55
4.4.60.0030.0118.55
4.4.50.0030.0108.55
4.4.40.0040.0168.55
4.4.30.0050.0088.55
4.4.20.0070.0088.55
4.4.10.0020.0128.55
4.4.00.0020.0228.55
4.3.110.0040.0108.55
4.3.100.0020.0128.55
4.3.90.0040.0158.55
4.3.80.0040.0218.55
4.3.70.0020.0128.55
4.3.60.0050.0098.55
4.3.50.0050.0088.55
4.3.40.0040.0178.55
4.3.30.0000.0138.55
4.3.20.0050.0088.55
4.3.10.0000.0138.55
4.3.00.0030.0118.82

preferences:
48.2 ms | 401 KiB | 5 Q