3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch1 = curl_init(); $ch2 = curl_init(); // set URL and other appropriate options curl_setopt($ch1, CURLOPT_URL, "http://lxr.php.net/"); curl_setopt($ch1, CURLOPT_HEADER, 0); curl_setopt($ch2, CURLOPT_URL, "http://www.php.net/"); curl_setopt($ch2, CURLOPT_HEADER, 0); //create the multiple cURL handle $mh = curl_multi_init(); //add the two handles curl_multi_add_handle($mh,$ch1); curl_multi_add_handle($mh,$ch2); set_error_handler("myErrorHandler"); echo "before call\n"; curl_multi_exec($mh, new dummyclass()); echo "after call\n"; //imagecolorat($GLOBALS['img'], $addr >> 2, new dummyclass()); class dummyclass { } function myErrorHandler($errno, $errstr) { curl_multi_close($GLOBALS["mh"]); for ($i = 0; $i < 600000; $i++) $GLOBALS['x' . $i] = str_repeat(chr(0x55), 0x24); echo "$errstr\n"; return true; }

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.0070.00718.43
8.3.50.0140.00321.14
8.3.40.0040.01118.82
8.3.30.0040.01118.84
8.3.20.0000.00818.55
8.3.10.0040.00420.65
8.3.00.0040.00423.65
8.2.180.0070.01018.41
8.2.170.0160.00022.96
8.2.160.0110.00420.34
8.2.150.0040.00424.18
8.2.140.0030.00924.66
8.2.130.0040.00426.16
8.2.120.0150.00319.24
8.2.110.0070.00321.04
8.2.100.0040.00819.57
8.2.90.0000.00817.75
8.2.80.0080.00018.78
8.2.70.0080.00017.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00819.89
8.2.30.0080.00018.07
8.2.20.0080.00017.56
8.2.10.0040.00417.69
8.2.00.0040.00417.59
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.19
8.1.230.0140.00017.64
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0070.00317.23
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0000.00718.70
8.1.150.0070.00018.52
8.1.140.0000.00817.40
8.1.130.0030.00317.68
8.1.120.0000.00817.39
8.1.110.0000.00717.37
8.1.100.0000.00817.24
8.1.90.0050.00317.37
8.1.80.0000.00717.36
8.1.70.0000.00717.35
8.1.60.0050.00217.48
8.1.50.0000.00817.41
8.1.40.0040.00417.44
8.1.30.0060.00317.45
8.1.20.0000.00917.59
8.1.10.0030.00617.41
8.1.00.0060.00317.47
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.39
8.0.270.0000.00717.27
8.0.260.0000.00716.80
8.0.250.0030.00516.84
8.0.240.0110.00016.96
8.0.230.0040.00416.83
8.0.220.0000.00716.82
8.0.210.0070.00016.93
8.0.200.0000.00617.01
8.0.190.0040.00416.95
8.0.180.0000.00716.99
8.0.170.0030.00616.83
8.0.160.0030.00716.93
8.0.150.0060.00316.78
8.0.140.0130.00016.81
8.0.130.0060.00013.38
8.0.120.0040.00416.75
8.0.110.0050.00316.70
8.0.100.0070.00016.97
8.0.90.0000.00916.90
8.0.80.0070.00816.80
8.0.70.0040.00416.94
8.0.60.0000.00716.79
8.0.50.0040.00416.70
8.0.30.0080.01117.03
8.0.20.0100.00817.40
8.0.10.0040.00416.78
8.0.00.0110.00716.71
7.4.330.0000.00513.43
7.4.320.0030.00316.50
7.4.300.0000.00616.55
7.4.290.0060.00016.42
7.4.280.0040.00416.46
7.4.270.0000.00716.45
7.4.260.0000.00513.27
7.4.250.0030.00616.39
7.4.240.0070.00016.44
7.4.230.0030.00316.25
7.4.220.0090.00916.52
7.4.210.0100.00716.50
7.4.200.0000.00716.36
7.4.190.0040.00416.72
7.4.160.0100.00716.27
7.4.150.0120.00617.40
7.4.140.0170.00117.86
7.4.130.0120.01116.47
7.4.120.0080.01016.45
7.4.110.0110.00716.57
7.4.100.0070.01016.62
7.4.90.0060.01216.43
7.4.80.0120.00619.04
7.4.70.0120.01216.65
7.4.60.0120.00616.28
7.4.50.0030.00616.66
7.4.40.0040.01122.27
7.4.30.0100.00616.38
7.4.00.0090.00614.79
7.3.330.0030.00313.33
7.3.320.0060.00013.25
7.3.310.0000.00816.35
7.3.300.0000.00716.31
7.3.290.0070.00716.22
7.3.280.0130.00516.29
7.3.270.0140.00717.40
7.3.260.0090.01018.24
7.3.250.0090.00816.42
7.3.240.0000.01816.46
7.3.230.0130.01016.53
7.3.210.0100.00616.67
7.3.200.0080.00819.39
7.3.190.0100.01316.36
7.3.180.0040.01116.27
7.3.170.0080.00816.45
7.3.160.0060.01116.45
7.3.120.0000.01114.98
7.3.00.0070.01016.48
7.2.330.0070.01016.73
7.2.320.0100.00616.41
7.2.310.0120.00616.57
7.2.300.0070.01016.50
7.2.290.0090.00916.23
7.2.130.0090.00616.70
7.2.120.0090.00916.43
7.2.110.0040.01116.55
7.2.100.0150.00316.70
7.2.90.0070.00316.89
7.2.80.0060.00916.68
7.2.70.0100.00716.66
7.2.60.0070.00716.67
7.2.50.0100.00616.94
7.2.40.0100.00716.96
7.2.30.0100.00716.80
7.2.20.0040.01216.51
7.2.10.0090.00616.79
7.2.00.0060.00918.12
7.1.250.0130.00315.52
7.1.240.0090.00315.63
7.1.230.0100.00315.36
7.1.220.0060.00915.66
7.1.210.0060.00615.52
7.1.200.0070.00715.32
7.1.190.0070.00715.39
7.1.180.0030.00515.70
7.1.170.0110.00715.54
7.1.160.0080.00815.57
7.1.150.0000.01115.44
7.1.140.0060.00615.65
7.1.130.0060.00315.54
7.1.120.0040.00815.39
7.1.110.0060.00615.59
7.1.100.0050.01116.68
7.1.90.0090.01415.43
7.1.80.0120.00815.68
7.1.70.0060.00716.18
7.1.60.0100.00917.51
7.1.50.0080.01416.20
7.1.40.0070.00715.44
7.1.30.0150.00415.73
7.1.20.0070.01015.25
7.1.10.0100.00715.41
7.1.00.0070.02418.84
7.0.330.0040.00415.13
7.0.320.0100.00314.86
7.0.310.0030.00715.15
7.0.300.0100.00315.34
7.0.290.0060.00615.23
7.0.280.0060.00814.97
7.0.270.0060.00915.21
7.0.260.0060.00315.16
7.0.250.0140.00715.05
7.0.240.0100.00714.83
7.0.230.0060.01315.25
7.0.220.0070.01414.96
7.0.210.0140.01114.94
7.0.200.0050.00815.83
7.0.190.0130.00915.29
7.0.180.0050.01415.07
7.0.170.0130.01015.24
7.0.160.0190.00015.26
7.0.150.0150.00615.28
7.0.140.0100.03718.60
7.0.130.0000.01514.87
7.0.120.0160.00415.06
7.0.110.0090.04018.48
7.0.100.0020.03818.46
7.0.90.0040.02418.51
7.0.80.0060.04118.31
7.0.70.0080.04018.45
7.0.60.0030.02918.48
7.0.50.0080.04218.47
7.0.40.0030.04716.45
7.0.30.0050.03816.49
7.0.20.0040.04216.45
7.0.10.0020.04516.42
7.0.00.0060.04016.44
5.6.380.0070.00713.92
5.6.370.0070.01114.07
5.6.360.0130.00314.09
5.6.350.0090.00913.87
5.6.340.0060.01314.15
5.6.330.0140.00413.79
5.6.320.0160.00414.11
5.6.310.0030.01013.70
5.6.300.0040.01513.97
5.6.290.0070.00713.62
5.6.280.0080.04017.57
5.6.270.0070.00714.03
5.6.260.0050.03517.14
5.6.250.0050.04017.14
5.6.240.0020.03817.24
5.6.230.0020.04617.43
5.6.220.0060.04117.28
5.6.210.0050.04517.45
5.6.200.0030.04217.28
5.6.190.0030.04717.44
5.6.180.0060.03617.41
5.6.170.0050.04217.08
5.6.160.0090.04217.29
5.6.150.0080.04017.25
5.6.140.0080.04317.21
5.6.130.0090.04217.24
5.6.120.0070.03917.21
5.6.110.0030.04717.30
5.6.100.0040.03417.38
5.6.90.0030.04517.27
5.6.80.0030.04516.90
5.6.70.0050.04316.86
5.6.60.0030.04616.92
5.6.50.0090.03816.91
5.6.40.0030.04316.87
5.6.30.0060.04316.95
5.6.20.0050.04516.88
5.6.10.0030.03516.94
5.6.00.0040.04316.80
5.5.380.0060.03014.36
5.5.370.0080.04014.34
5.5.360.0080.03514.36
5.5.350.0050.04014.46
5.5.340.0020.04814.54
5.5.330.0030.04414.61
5.5.320.0040.04614.54
5.5.310.0040.04214.63
5.5.300.0040.04014.54
5.5.290.0050.04514.70
5.5.280.0080.04014.56
5.5.270.0000.04714.65
5.5.260.0060.04314.55
5.5.250.0020.04514.47
5.5.240.0050.04214.35
5.5.230.0030.04314.40
5.5.220.0030.02814.24
5.5.210.0050.04014.24
5.5.200.0080.03014.31
5.5.190.0030.04514.24
5.5.180.0030.04114.29
5.5.170.0030.00311.18
5.5.160.0050.03314.32
5.5.150.0020.02914.31
5.5.140.0020.03314.31
5.5.130.0030.04114.33
5.5.120.0040.03214.31
5.5.110.0020.02514.30
5.5.100.0020.02914.25
5.5.90.0050.03314.33
5.5.80.0050.03314.21
5.5.70.0000.03714.19
5.5.60.0020.02614.32
5.5.50.0000.03714.17
5.5.40.0040.02814.24
5.5.30.0030.03814.16
5.5.20.0020.04114.23
5.5.10.0030.03914.32
5.5.00.0040.04014.23
5.4.450.0030.02815.34
5.4.440.0060.04315.34
5.4.430.0070.02215.41
5.4.420.0080.03015.39
5.4.410.0060.04315.27
5.4.400.0050.03915.10
5.4.390.0080.04015.21
5.4.380.0070.03515.18
5.4.370.0030.03015.25
5.4.360.0070.03615.09
5.4.350.0050.04115.26
5.4.340.0020.04215.24
5.4.330.0000.01511.18
5.4.320.0040.03915.18
5.4.310.0050.04215.13
5.4.300.0070.03715.16
5.4.290.0040.04115.13
5.4.280.0090.03715.09
5.4.270.0070.03815.26
5.4.260.0000.04215.20
5.4.250.0020.04515.08
5.4.240.0000.04215.17
5.4.230.0050.03715.18
5.4.220.0050.03515.06
5.4.210.0050.03315.09
5.4.200.0050.02515.06
5.4.190.0060.03615.13
5.4.180.0030.03815.16
5.4.170.0040.04415.10
5.4.160.0020.03415.08
5.4.150.0020.03915.15
5.4.140.0030.02713.80
5.4.130.0020.02513.88
5.4.120.0030.04013.78
5.4.110.0020.03913.90
5.4.100.0110.01613.94
5.4.90.0060.03513.89
5.4.80.0070.03513.84
5.4.70.0030.03513.84
5.4.60.0020.03313.83
5.4.50.0060.03713.79
5.4.40.0060.03613.85
5.4.30.0070.03713.78
5.4.20.0080.03513.83
5.4.10.0030.03613.81
5.4.00.0070.03513.54
5.3.290.0000.04212.91
5.3.280.0040.03712.95
5.3.270.0050.03712.90
5.3.260.0060.02612.91
5.3.250.0030.04012.90
5.3.240.0050.03812.89
5.3.230.0020.02312.89
5.3.220.0030.02812.94
5.3.210.0030.04012.80
5.3.200.0020.03712.91
5.3.190.0050.03212.87
5.3.180.0030.03712.86
5.3.170.0040.04012.89
5.3.160.0040.03312.88
5.3.150.0060.04012.94
5.3.140.0030.04412.93
5.3.130.0030.03812.89
5.3.120.0020.04112.87
5.3.110.0050.03812.86
5.3.100.0030.03212.62
5.3.90.0040.03712.61
5.3.80.0070.03412.59
5.3.70.0020.04012.66
5.3.60.0050.03812.63
5.3.50.0020.02212.57
5.3.40.0020.02512.56
5.3.30.0050.02512.55
5.3.20.0070.03312.45
5.3.10.0010.03812.34
5.3.00.0020.04012.48
5.2.170.0030.02511.17
5.2.160.0030.03111.22
5.2.150.0030.03311.14
5.2.140.0050.02811.27
5.2.130.0020.03411.13
5.2.120.0040.01811.17
5.2.110.0010.03611.15
5.2.100.0030.02511.21
5.2.90.0030.03311.21
5.2.80.0010.03511.14
5.2.70.0030.02311.13
5.2.60.0000.03811.09
5.2.50.0010.03311.03
5.2.40.0040.02811.09
5.2.30.0030.03211.06
5.2.20.0020.02111.14
5.2.10.0040.03211.01
5.2.00.0020.03111.00
5.1.60.0040.02310.67
5.1.50.0030.02310.50
5.1.40.0030.02610.56
5.1.30.0050.02310.77
5.1.20.0030.03110.69
5.1.10.0080.02310.65
5.1.00.0040.02810.67
5.0.50.0000.0249.78
5.0.40.0000.0229.79
5.0.30.0020.0229.69
5.0.20.0040.0189.69
5.0.10.0030.0229.67
5.0.00.0020.0309.65
4.4.90.0020.0179.27
4.4.80.0000.0209.27
4.4.70.0050.0149.27
4.4.60.0030.0169.27
4.4.50.0020.0159.27
4.4.40.0030.0259.27
4.4.30.0030.0189.27
4.4.20.0020.0159.27
4.4.10.0030.0189.27
4.4.00.0030.0279.27
4.3.110.0020.0169.27
4.3.100.0010.0099.27
4.3.90.0020.0179.27
4.3.80.0020.0219.27
4.3.70.0020.0199.27
4.3.60.0030.0189.27
4.3.50.0010.0189.27
4.3.40.0000.0209.27
4.3.30.0020.0219.27
4.3.20.0000.0199.27
4.3.10.0000.0219.27
4.3.00.0020.0199.27

preferences:
48.51 ms | 401 KiB | 5 Q