3v4l.org

run code in 300+ PHP versions simultaneously
<?php // create both cURL resources $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); $active = null; //execute the handles do { $mrc = curl_multi_exec($mh, $active); } while ($mrc == CURLM_CALL_MULTI_PERFORM); while ($active && $mrc == CURLM_OK) { if (curl_multi_select($mh) != -1) { do { $mrc = curl_multi_exec($mh, $active); } while ($mrc == CURLM_CALL_MULTI_PERFORM); } } //close the handles curl_multi_remove_handle($mh, $ch1); curl_multi_remove_handle($mh, $ch2); curl_multi_close($mh);

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.0040.01518.56
8.3.50.0110.00916.16
8.3.40.0030.01018.96
8.3.30.0070.00718.67
8.3.20.0080.00020.34
8.3.10.0040.00421.95
8.3.00.0080.00019.80
8.2.180.0070.00718.43
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00617.63
8.2.110.0060.00322.10
8.2.100.0090.00317.63
8.2.90.0000.00819.04
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0060.00317.88
8.2.50.0000.00818.07
8.2.40.0000.00821.14
8.2.30.0080.00019.66
8.2.20.0040.00417.57
8.2.10.0000.00717.99
8.2.00.0040.00418.01
8.1.280.0100.00725.92
8.1.270.0040.01420.29
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.34
8.1.230.0090.00317.42
8.1.220.0030.00517.74
8.1.210.0000.01018.77
8.1.200.0030.00617.23
8.1.190.0000.00817.09
8.1.180.0050.00318.10
8.1.170.0050.00318.44
8.1.160.0040.00422.16
8.1.150.0070.00018.78
8.1.140.0050.00317.34
8.1.130.0030.00317.50
8.1.120.0030.00517.23
8.1.110.0020.00517.33
8.1.100.0050.00217.35
8.1.90.0040.00417.32
8.1.80.0030.00617.31
8.1.70.0030.00317.21
8.1.60.0080.00017.54
8.1.50.0040.00417.55
8.1.40.0030.00517.45
8.1.30.0040.00417.60
8.1.20.0040.00417.63
8.1.10.0000.00817.44
8.1.00.0000.00817.32
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0030.00318.44
8.0.270.0000.00817.21
8.0.260.0000.00617.27
8.0.250.0040.00416.91
8.0.240.0000.00716.90
8.0.230.0080.00016.90
8.0.220.0070.00016.88
8.0.210.0000.00716.79
8.0.200.0030.00316.98
8.0.190.0080.00016.97
8.0.180.0030.00516.91
8.0.170.0040.00416.86
8.0.160.0030.00316.81
8.0.150.0000.00816.75
8.0.140.0040.00416.89
8.0.130.0030.00313.35
8.0.120.0030.00616.82
8.0.110.0070.00016.84
8.0.100.0070.00016.77
8.0.90.0000.00816.90
8.0.80.0110.00416.93
8.0.70.0030.00616.88
8.0.60.0030.00316.77
8.0.50.0040.00416.77
8.0.30.0050.01216.90
8.0.20.0160.00517.40
8.0.10.0070.00016.99
8.0.00.0060.01216.82
7.4.330.0020.00215.08
7.4.320.0000.00716.46
7.4.300.0000.00616.46
7.4.290.0040.00416.59
7.4.280.0090.00016.46
7.4.270.0030.00316.46
7.4.260.0030.00416.56
7.4.250.0040.00416.46
7.4.240.0050.00216.42
7.4.230.0030.00316.57
7.4.220.0090.01116.50
7.4.210.0080.00916.58
7.4.200.0050.00316.57
7.4.160.0080.00816.48
7.4.150.0070.01017.40
7.4.140.0090.01117.86
7.4.130.0110.00716.45
7.4.120.0050.01216.48
7.4.110.0090.01316.67
7.4.100.0110.01216.37
7.4.90.0100.00716.48
7.4.80.0040.01619.39
7.4.70.0060.00916.43
7.4.60.0090.00616.30
7.4.50.0030.00616.62
7.4.40.0030.01316.48
7.4.30.0110.00716.66
7.4.00.0120.00614.99
7.3.330.0000.00513.20
7.3.320.0030.00313.01
7.3.310.0070.00016.28
7.3.300.0000.00716.23
7.3.290.0050.01216.29
7.3.280.0080.01016.29
7.3.270.0150.00417.40
7.3.260.0090.00916.31
7.3.250.0100.00816.40
7.3.240.0070.01116.23
7.3.230.0040.01316.39
7.3.210.0090.00916.29
7.3.200.0110.01119.39
7.3.190.0140.00916.44
7.3.180.0060.01016.32
7.3.170.0060.00916.45
7.3.160.0120.00616.38
7.2.330.0090.01516.32
7.2.320.0130.01016.53
7.2.310.0090.00616.20
7.2.300.0060.01216.45
7.2.290.0040.01316.36
7.2.80.0060.00616.57
7.2.60.0160.00016.55
7.2.00.0030.01219.36
7.1.200.0050.00315.71
7.1.100.0390.00017.67
7.1.70.0030.01016.73
7.1.60.0150.01120.03
7.1.50.0110.01116.95
7.1.00.0100.07022.43
7.0.200.0110.00416.84
7.0.60.0130.07319.81
7.0.50.0130.03017.82
7.0.40.0100.08720.03
7.0.30.0330.06720.21
7.0.20.0330.07320.18
7.0.10.0270.06320.17
7.0.00.0000.04320.00
5.6.280.0100.06020.87
5.6.210.0030.08320.54
5.6.200.0030.04018.13
5.6.190.0000.04720.57
5.6.180.0100.07020.66
5.6.170.0300.07320.33
5.6.160.0070.06720.48
5.6.150.0030.05718.16
5.6.140.0070.08718.09
5.6.130.0030.05018.14
5.6.120.0070.05020.97
5.6.110.0030.05721.11
5.6.100.0070.04321.11
5.6.90.0030.04020.95
5.6.80.0000.05320.36
5.6.70.0230.03720.35
5.5.350.0030.07320.33
5.5.340.0070.08018.04
5.5.330.0130.05020.19
5.5.320.0300.06320.27
5.5.310.0230.05320.20
5.5.300.0070.08317.92
5.5.290.0200.03018.05
5.5.280.0030.04720.78
5.5.270.0130.03320.81
5.5.260.0030.08720.90
5.5.250.0070.06020.57
5.5.240.0070.07720.27
5.4.450.0230.05319.43
5.4.440.0170.06019.63
5.4.430.0270.05319.27
5.4.420.0230.05719.40
5.4.410.0200.05718.97
5.4.400.0300.07019.27
5.4.390.0230.06319.30
5.4.380.0300.05319.27
5.4.370.0270.05019.32
5.4.360.0330.04719.11
5.4.350.0300.05018.92
5.4.340.0270.05018.95
5.4.320.0200.06019.15
5.4.310.0270.05019.11
5.4.300.0270.05019.14
5.4.290.0200.05319.08
5.4.280.0430.03719.27
5.4.270.0170.06018.99
5.4.260.0230.05319.30
5.4.250.0200.05719.14
5.4.240.0200.05719.07
5.4.230.0300.04719.29
5.4.220.0200.05718.91
5.4.210.0270.04719.04
5.4.200.0270.04716.55
5.4.190.0400.03719.06
5.4.180.0300.05018.88
5.4.170.0270.06319.06
5.4.160.0200.06019.05
5.4.150.0200.05319.24
5.4.140.0230.04716.32
5.4.130.0300.04316.48
5.4.120.0200.05016.21
5.4.110.0270.05716.15
5.4.100.0270.05016.29
5.4.90.0170.05716.56
5.4.80.0170.05716.38
5.4.70.0230.05016.27
5.4.60.0230.04716.54
5.4.50.0230.04316.54
5.4.40.0170.05716.45
5.4.30.0200.05016.20
5.4.20.0300.05016.25
5.4.10.0230.05016.37
5.4.00.0300.04715.89

preferences:
57.91 ms | 400 KiB | 5 Q