3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.enigmagroup.org/missions/captcha/1/image.php"); curl_setopt($ch, CURLOPT_COOKIE, "mission=yes; enigmafiedV4=a%3A4%3A%7Bi%3A0%3Bs%3A5%3A%2287302%22%3Bi%3A1%3Bs%3A40%3A%222cba7b5b5618ee7e73fe97fdeee2da93f1004d17%22%3Bi%3A2%3Bi%3A1625913468%3Bi%3A3%3Bi%3A2%3B%7D; PHPSESSID=gmgqivglc7947mu31cijn592r0"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, "http://www.enigmagroup.org/missions/captcha/1/"); // var stores the raw web-page data. (the web-page is only an image, no other HTML, so nothing to filter through) $var= curl_exec($ch); // creating an image from the raw data $imgRes = imagecreatefromstring($var); // Saving the image to the Tesseract Folder. imagepng($imgRes, 'C:\Tesseract-OCR\captcha.png'); // Tesseract is command line based, having it run the application, passing it the picture we want solved and telling it to store the output in captcha.txt exec('C:\Tesseract-OCR\tesseract.exe C:\Tesseract-OCR\captcha.png captcha.txt'); // Opening the output file generated by tesseract, if it opens, getting the output, storing it and printing it. @ $words = fopen("captcha.txt", rb); if ($words) { $line = fgets($words); echo $line; fclose($words); } // Forumulating output based on the Tesseract output & submitting it back to the page. $output = "answer=$line&submit=true"; curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $output); $var = curl_exec($ch); echo $var; // echoing page data so we can see if it was successful or not. ?>

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.70.0100.01016.88
8.3.60.0150.00018.56
8.3.50.0110.00721.21
8.3.40.0140.00318.75
8.3.30.0110.00418.86
8.3.20.0030.00520.29
8.3.10.0000.00821.73
8.3.00.0040.00423.53
8.2.180.0090.00918.25
8.2.170.0070.01022.96
8.2.160.0080.01120.39
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00421.00
8.2.120.0040.00426.35
8.2.110.0060.00320.45
8.2.100.0030.00917.93
8.2.90.0000.00819.15
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0050.00522.27
8.2.30.0000.00719.48
8.2.20.0000.00717.64
8.2.10.0040.00417.90
8.2.00.0090.00017.92
8.1.280.0070.00725.92
8.1.270.0000.00722.14
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0070.00417.77
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0050.00318.54
8.1.160.0040.00420.61
8.1.150.0050.00218.77
8.1.140.0030.00519.55
8.1.130.0040.00417.59
8.1.120.0040.00417.41
8.1.110.0080.00017.26
8.1.100.0040.00417.38
8.1.90.0040.00417.27
8.1.80.0080.00317.35
8.1.70.0000.00717.34
8.1.60.0050.00217.41
8.1.50.0030.00517.48
8.1.40.0000.00817.42
8.1.30.0000.00817.59
8.1.20.0030.00517.63
8.1.10.0050.00317.63
8.1.00.0000.00717.51
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00518.46
8.0.270.0040.00417.16
8.0.260.0000.00817.23
8.0.250.0030.00317.01
8.0.240.0030.00316.88
8.0.230.0000.00717.00
8.0.220.0040.00416.95
8.0.210.0070.00016.80
8.0.200.0030.00316.98
8.0.190.0000.00817.05
8.0.180.0040.00416.99
8.0.170.0050.00317.03
8.0.160.0080.00016.99
8.0.150.0040.00316.89
8.0.140.0020.00516.84
8.0.130.0000.00513.41
8.0.120.0030.00516.90
8.0.110.0000.00716.83
8.0.100.0040.00416.93
8.0.90.0030.00416.85
8.0.80.0040.01116.89
8.0.70.0040.00416.84
8.0.60.0070.00016.90
8.0.50.0030.00517.01
8.0.30.0120.00417.00
8.0.20.0110.00917.40
8.0.10.0040.00416.80
8.0.00.0090.00816.72
7.4.330.0020.00216.84
7.4.320.0030.00316.57
7.4.300.0000.00716.64
7.4.290.0030.00316.49
7.4.280.0070.00016.59
7.4.270.0000.00716.50
7.4.260.0030.00316.49
7.4.250.0070.00016.51
7.4.240.0040.00316.57
7.4.230.0000.00716.58
7.4.220.0090.01216.52
7.4.210.0070.00816.54
7.4.200.0030.00416.40
7.4.160.0110.00516.59
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0060.01216.64
7.4.120.0140.00616.63
7.4.110.0110.00716.51
7.4.100.0110.00716.61
7.4.90.0060.01216.43
7.4.80.0150.00919.39
7.4.70.0060.01116.43
7.4.60.0090.00616.54
7.4.50.0060.00616.26
7.4.40.0090.01516.44
7.4.30.0140.00316.75
7.4.00.0030.01615.13
7.3.330.0000.00513.18
7.3.320.0050.00013.23
7.3.310.0000.00816.16
7.3.300.0070.00016.18
7.3.290.0040.00416.30
7.3.280.0070.00816.28
7.3.270.0100.00617.40
7.3.260.0150.00416.41
7.3.250.0090.00816.50
7.3.240.0070.01016.33
7.3.230.0130.01016.61
7.3.210.0190.00416.27
7.3.200.0130.01019.39
7.3.190.0070.01016.62
7.3.180.0010.00416.27
7.3.170.0110.00816.46
7.3.160.0120.00916.61
7.3.120.0040.01514.83
7.3.110.0040.01114.97
7.3.100.0030.01214.79
7.3.90.0060.00814.75
7.3.80.0140.00014.79
7.3.70.0000.01514.91
7.3.60.0070.00714.92
7.3.50.0070.00714.91
7.3.40.0090.00614.63
7.3.30.0030.00914.90
7.3.20.0030.01016.65
7.3.10.0080.00716.38
7.3.00.0030.00916.33
7.2.330.0070.01116.39
7.2.320.0140.00716.66
7.2.310.0090.00616.45
7.2.300.0150.00316.31
7.2.290.0130.00316.61
7.2.250.0110.00715.20
7.2.240.0030.01714.71
7.2.230.0070.01114.73
7.2.220.0060.01315.03
7.2.210.0110.00014.76
7.2.200.0060.01015.08
7.2.190.0040.00815.09
7.2.180.0000.01914.61
7.2.170.0110.00314.57
7.2.130.0060.00616.47
7.2.120.0000.01216.50
7.2.110.0030.00916.86
7.2.100.0060.00616.63
7.2.90.0030.00916.62
7.2.80.0060.00616.67
7.2.70.0090.00316.57
7.2.60.0090.00416.25
7.2.50.0070.00316.65
7.2.40.0000.01816.76
7.2.30.0080.00416.78
7.2.20.0080.00816.56
7.2.10.0000.01516.35
7.2.00.0060.00818.09
7.1.330.0000.01715.33
7.1.320.0030.01315.64
7.1.310.0060.00915.76
7.1.300.0060.00915.70
7.1.290.0040.01115.60
7.1.280.0070.00715.70
7.1.270.0080.00315.46
7.1.260.0070.00715.73
7.1.250.0030.00615.78
7.1.200.0070.00715.77
7.1.100.0120.00317.74
7.1.70.0030.00617.15
7.1.60.0070.01719.28
7.1.50.0080.01216.90
7.1.00.0030.07722.45
7.0.200.0110.00416.21
7.0.60.0070.07721.74
7.0.50.0200.06717.92
7.0.40.0100.04020.31
7.0.30.0330.04720.04
7.0.20.0230.08320.08
7.0.10.0070.08720.16
7.0.00.0130.08019.96
5.6.280.0070.05321.12
5.6.210.0100.05320.57
5.6.200.0100.08018.09
5.6.190.0070.08720.50
5.6.180.0170.04320.41
5.6.170.0230.04020.61
5.6.160.0170.04320.46
5.6.150.0130.07318.07
5.6.140.0100.05018.18
5.6.130.0100.04718.18
5.6.120.0100.05021.00
5.6.110.0130.07720.99
5.6.100.0100.08721.11
5.6.90.0070.06720.98
5.6.80.0100.07720.40
5.5.350.3430.03320.42
5.5.340.0030.05017.93
5.5.330.0130.06720.40
5.5.320.0200.04020.41
5.5.310.0270.03020.52
5.5.300.0100.05018.02
5.5.290.0070.08017.91
5.5.280.0170.07320.81
5.5.270.0000.08720.87
5.5.260.0100.07720.77
5.5.250.0130.06320.79
5.5.240.0100.05320.05

preferences:
46.26 ms | 401 KiB | 5 Q