3v4l.org

run code in 300+ PHP versions simultaneously
<? // Make array of URLs to work with $URLs = array( 'http://zonzoo.nl/uw-telefoons-verkopen/1023/Apple+iPhone+4+16GB', 'http://zonzoo.nl/uw-telefoons-verkopen/1024/Apple+iPhone+4+32GB', 'http://zonzoo.nl/uw-telefoons-verkopen/1272/Apple+iPhone+4+8GB' ); // Loop through each array and store the prices in arrays foreach ($URLs as $URL) { $working[] = do_shortcode('[wpwg url="' . $URL . '" selector=".price-quote.working dd" cache="0" rem_tags="script, style" newtab="false"]'); $not_working[] = do_shortcode('[wpwg url="' . $URL . '" selector=".price-quote.not_working dd" cache="0" rem_tags="script, style" newtab="false"]'); } // Open the file "zonzoo.csv" for writing $file = fopen('zonzoo.csv', 'w'); // Save the column headers fputcsv($file, array('ID', 'NAME', 'CATEGORY', 'BRAND', 'PRICE', 'DEEPLINK', 'IMAGE', 'SHIPPING')); // Sample data. This can be fetched from MySQL too $data = array ( array(1, 'iPhone 4 16GB', 'Mobiel', 'Apple', 0, 'http://zonzoo.nl/uw-telefoons-verkopen/1023/Apple+iPhone+4+16GB', 'http://www.fonebank.com/images/uploads/handsets/apple-iphone-4-ofic-final.jpg', 0), array(2, 'iPhone 4 32GB', 'Mobiel', 'Apple', 0, 'http://zonzoo.nl/uw-telefoons-verkopen/1024/Apple+iPhone+4+32GB', 'http://www.fonebank.com/images/uploads/handsets/apple-iphone-4-ofic-final.jpg', 0), array(3, 'iPhone 4 8GB', 'Mobiel', 'Apple', 0, 'http://zonzoo.nl/uw-telefoons-verkopen/1272/Apple+iPhone+4+8GB', 'http://www.fonebank.com/images/uploads/handsets/apple-iphone-4-ofic-final.jpg', 0) ); // Replace the prices of working mobile phones $i = 0; foreach ($working as $price_working) { $data[$i][4] = $price_working; $i++; } // Replace the prices of not-working mobile phones $x = 0; foreach ($not_working as $price_not_working) { $data[$x][7] = $price_not_working; $x++; } // Save each row of the data foreach ($data as $row) { fputcsv($file, $row); } // Close the file fclose($file); ?>

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.0100.00716.50
8.3.50.0130.00316.38
8.3.40.0100.00318.59
8.3.30.0100.00318.54
8.3.20.0050.00220.21
8.3.10.0080.00023.53
8.3.00.0040.00417.59
8.2.180.0150.00616.32
8.2.170.0140.00022.96
8.2.160.0040.01120.54
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00019.38
8.2.120.0070.00026.35
8.2.110.0090.00019.29
8.2.100.0070.00417.91
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0050.00517.49
8.2.60.0040.00417.80
8.2.50.0030.00618.10
8.2.40.0040.00422.27
8.2.30.0040.00420.97
8.2.20.0000.00717.95
8.2.10.0000.00717.80
8.2.00.0040.00417.80
8.1.280.0100.01025.92
8.1.270.0080.00023.66
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00322.13
8.1.230.0070.00419.10
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.10
8.1.190.0090.00516.63
8.1.180.0000.00718.10
8.1.170.0040.00418.52
8.1.160.0000.00818.81
8.1.150.0040.00418.62
8.1.140.0020.00519.38
8.1.130.0000.00718.62
8.1.120.0030.00317.35
8.1.110.0050.00317.33
8.1.100.0060.00317.33
8.1.90.0080.00317.27
8.1.80.0040.00417.20
8.1.70.0040.00417.24
8.1.60.0060.00617.43
8.1.50.0000.00717.39
8.1.40.0030.00517.36
8.1.30.0040.00417.34
8.1.20.0030.00517.43
8.1.10.0000.00717.39
8.1.00.0030.00617.20
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00618.35
8.0.270.0070.00017.12
8.0.260.0030.00316.78
8.0.250.0000.00716.84
8.0.240.0040.00416.85
8.0.230.0000.00716.73
8.0.220.0070.00016.64
8.0.210.0040.00416.75
8.0.200.0030.00316.67
8.0.190.0060.00316.78
8.0.180.0000.00716.79
8.0.170.0040.00416.70
8.0.160.0050.00316.75
8.0.150.0000.00716.71
8.0.140.0050.00216.67
8.0.130.0050.00013.39
8.0.120.0050.00316.60
8.0.110.0000.00816.62
8.0.100.0060.00316.54
8.0.90.0000.00716.81
8.0.80.0110.00716.73
8.0.70.0040.00416.61
8.0.60.0040.00316.63
8.0.50.0070.00016.74
8.0.30.0100.01117.12
8.0.20.0100.01117.40
8.0.10.0040.00416.67
8.0.00.0160.00616.37
7.4.330.0050.00015.55
7.4.320.0070.00016.44
7.4.300.0030.00316.54
7.4.290.0050.00216.28
7.4.280.0080.00016.46
7.4.270.0000.00716.47
7.4.260.0000.00513.20
7.4.250.0000.00716.23
7.4.240.0000.00716.37
7.4.230.0080.00016.55
7.4.220.0100.01616.56
7.4.210.0050.00816.57
7.4.200.0070.00016.43
7.4.160.0090.00616.44
7.4.150.0070.01117.40
7.4.140.0070.01117.86
7.4.130.0100.01016.46
7.4.120.0070.01316.41
7.4.110.0130.00316.72
7.4.100.0140.00716.56
7.4.90.0070.01016.22
7.4.80.0190.00019.39
7.4.70.0150.00316.38
7.4.60.0060.00916.22
7.4.50.0030.01416.47
7.4.40.0060.00916.21
7.4.30.0190.00316.48
7.4.00.0030.01414.61
7.3.330.0000.00513.19
7.3.320.0000.00613.13
7.3.310.0000.00716.11
7.3.300.0030.00316.16
7.3.290.0070.01116.15
7.3.280.0080.00916.12
7.3.270.0100.01017.40
7.3.260.0130.00416.32
7.3.250.0100.00916.15
7.3.240.0120.00516.34
7.3.230.0060.01216.40
7.3.210.0130.00316.15
7.3.200.0090.00816.49
7.3.190.0100.01116.45
7.3.180.0090.01216.52
7.3.170.0040.01216.32
7.3.160.0040.01116.36
7.2.330.0090.01316.21
7.2.320.0140.00316.62
7.2.310.0140.00316.43
7.2.300.0100.01016.23
7.2.290.0060.01116.32
7.2.60.0000.01616.79
7.2.00.0030.01219.38
7.1.200.0060.00615.83
7.1.100.0090.00317.91
7.1.70.0150.00817.06
7.1.60.0230.01334.81
7.1.50.0180.01834.80
7.1.40.0220.01334.19
7.1.30.0130.02034.36
7.1.20.0100.02134.45
7.1.10.0090.01216.50
7.1.00.0120.00316.45
7.0.200.0020.01216.55
7.0.190.0090.00916.63
7.0.180.0070.00716.27
7.0.170.0090.00616.26
7.0.160.0090.00816.19
7.0.150.0030.01715.91
7.0.140.0060.00916.25
7.0.130.0030.01316.51
7.0.120.0050.01316.51
7.0.110.0060.01616.34
7.0.100.0140.00616.29
7.0.90.0160.00816.14
7.0.80.0170.00616.24
7.0.70.0050.01716.20
7.0.60.0100.00716.18
7.0.50.0120.00916.25
7.0.40.0110.00616.44
7.0.30.0080.00816.45
7.0.20.0070.01316.47
7.0.10.0060.01316.55
7.0.00.0070.01316.51

preferences:
53.52 ms | 401 KiB | 5 Q