3v4l.org

run code in 300+ PHP versions simultaneously
<?php // create curl resource $ch = curl_init(); // set url curl_setopt($ch, CURLOPT_URL, "example.com"); //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // $output contains the output string $output = curl_exec($ch); // close curl resource to free up system resources curl_close($ch); ?>

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.00718.05
8.3.50.0130.00821.97
8.3.40.0060.01218.63
8.3.30.0110.00419.14
8.3.20.0040.00420.37
8.3.10.0040.00421.74
8.3.00.0070.00419.50
8.2.180.0060.01218.38
8.2.170.0150.00022.96
8.2.160.0100.00720.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00319.36
8.2.110.0120.00922.25
8.2.100.0090.00317.75
8.2.90.0000.00719.23
8.2.80.0000.00817.97
8.2.70.0080.00417.48
8.2.60.0060.00317.91
8.2.50.0080.00018.07
8.2.40.0040.00419.63
8.2.30.0040.00417.89
8.2.20.0030.00517.73
8.2.10.0060.00317.98
8.2.00.0000.00717.71
8.1.280.0090.01125.92
8.1.270.0090.00018.75
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0000.01019.14
8.1.230.0090.00317.54
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.13
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0050.00320.13
8.1.160.0040.00421.96
8.1.150.0040.00418.82
8.1.140.0080.00017.31
8.1.130.0070.00017.76
8.1.120.0070.00017.36
8.1.110.0070.00017.26
8.1.100.0070.00017.36
8.1.90.0000.00717.41
8.1.80.0000.00717.24
8.1.70.0000.00717.34
8.1.60.0090.00017.34
8.1.50.0030.00517.36
8.1.40.0050.00217.51
8.1.30.0040.00417.47
8.1.20.0040.00417.65
8.1.10.0000.00717.38
8.1.00.0030.00617.41
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0030.00318.37
8.0.270.0070.00017.11
8.0.260.0030.00317.18
8.0.250.0030.00317.05
8.0.240.0000.00716.83
8.0.230.0070.00016.97
8.0.220.0080.00016.83
8.0.210.0030.00316.79
8.0.200.0080.00316.99
8.0.190.0040.00416.95
8.0.180.0030.00316.91
8.0.170.0040.00416.86
8.0.160.0000.00817.01
8.0.150.0040.00416.78
8.0.140.0000.00716.74
8.0.130.0000.00813.36
8.0.120.0030.00516.89
8.0.110.0020.00516.86
8.0.100.0030.00516.92
8.0.90.0000.00716.75
8.0.80.0100.01316.80
8.0.70.0000.00816.89
8.0.60.0050.00316.92
8.0.50.0000.00716.86
8.0.30.0160.00317.01
8.0.20.0140.00517.40
8.0.10.0030.00516.79
8.0.00.0120.00816.58
7.4.330.0050.00015.03
7.4.320.0040.00416.48
7.4.300.0070.00016.44
7.4.290.0000.00716.37
7.4.280.0060.00316.44
7.4.270.0040.00416.55
7.4.260.0000.00716.49
7.4.250.0000.00716.49
7.4.240.0020.00516.52
7.4.230.0070.00016.53
7.4.220.0070.01116.50
7.4.210.0090.00716.55
7.4.200.0030.00316.28
7.4.160.0150.00016.60
7.4.150.0040.01317.40
7.4.140.0090.00917.86
7.4.130.0020.01616.43
7.4.120.0160.00516.37
7.4.110.0130.01016.41
7.4.100.0200.00316.32
7.4.90.0090.00916.54
7.4.80.0140.00319.39
7.4.70.0140.00716.41
7.4.60.0070.01516.62
7.4.50.0000.00416.52
7.4.40.0100.00616.38
7.4.30.0080.00816.42
7.4.00.0070.00714.90
7.3.330.0000.00513.16
7.3.320.0100.00313.05
7.3.310.0050.00216.09
7.3.300.0040.00416.14
7.3.290.0070.00016.24
7.3.280.0110.01016.21
7.3.270.0060.01017.40
7.3.260.0060.01016.43
7.3.250.0080.00916.26
7.3.240.0130.00316.36
7.3.230.0070.01216.39
7.3.210.0120.00916.45
7.3.200.0100.00719.39
7.3.190.0090.01216.49
7.3.180.0130.00316.35
7.3.170.0190.00016.41
7.3.160.0120.00916.17
7.2.330.0120.00916.44
7.2.320.0040.01716.40
7.2.310.0080.01116.40
7.2.300.0040.02116.26
7.2.290.0130.01016.56
7.2.60.0000.01116.66
7.2.00.0000.01619.00
7.1.200.0040.00815.48
7.1.100.0000.01218.04
7.1.70.0000.00717.06
7.1.60.0040.01419.50
7.1.50.0000.01016.75
7.1.00.0070.07322.37
7.0.200.0270.00714.55
7.0.140.0070.06322.15
7.0.60.0100.07720.07
7.0.50.0070.03717.87
7.0.40.0000.06320.21
7.0.30.0400.07320.06
7.0.20.0270.08020.17
7.0.10.0030.04320.19
7.0.00.0000.08020.09
5.6.280.0100.06721.13
5.6.210.0070.08320.69
5.6.200.0030.08718.16
5.6.190.0000.09720.43
5.6.180.0330.03720.56
5.6.170.0200.05020.62
5.6.160.0100.08320.49
5.6.150.0000.06018.11
5.6.140.0030.06718.09
5.6.130.0130.06718.11
5.6.120.0100.07720.98
5.6.110.0070.08020.95
5.6.100.0100.08020.98
5.6.90.0070.08320.96
5.6.80.0030.08020.48
5.6.70.3000.02720.34
5.5.350.0000.03720.40
5.5.340.0100.03317.98
5.5.330.0100.08020.28
5.5.320.0330.06020.30
5.5.310.0330.05720.41
5.5.300.0030.04017.92
5.5.290.0130.07318.02
5.5.280.0070.08320.79
5.5.270.0100.03320.79
5.5.260.0130.04720.77
5.5.250.0130.07020.46
5.5.240.0270.06320.20
5.4.450.0630.05319.28
5.4.440.1170.05319.47
5.4.430.0900.07019.63
5.4.420.0430.07019.32
5.4.410.0130.05718.96
5.4.400.0600.06018.81
5.4.390.0370.05318.72
5.4.380.0300.05718.50
5.4.370.0270.06318.68
5.4.360.0400.05718.55
5.4.350.0370.05718.49
5.4.340.0170.06718.50
5.4.320.0470.06318.66
5.4.310.0470.06318.45
5.4.300.0430.05318.55
5.4.290.0530.05718.69
5.4.280.0570.07018.48
5.4.270.0530.08018.77
5.4.260.0630.06018.73
5.4.250.0230.09018.67
5.4.240.0530.06718.54
5.4.230.0500.07318.76
5.4.220.0500.09018.78
5.4.210.0470.06318.65
5.4.200.0400.07316.64
5.4.190.0430.07318.68
5.4.180.0230.06018.45
5.4.170.0330.06018.66
5.4.160.0400.05718.68
5.4.150.0430.07718.47
5.4.140.0400.06016.16
5.4.130.0370.06016.05
5.4.120.0500.06716.30
5.4.110.0530.04016.34
5.4.100.0430.07016.04
5.4.90.0500.05316.04
5.4.80.0300.05716.29
5.4.70.0470.05016.13
5.4.60.0330.06016.22
5.4.50.0500.06316.04
5.4.40.0430.05316.32
5.4.30.0370.05716.13
5.4.20.0300.05316.18
5.4.10.0430.05016.31
5.4.00.0500.05015.76
5.3.290.0230.07314.63
5.3.280.0300.05714.61
5.3.270.0400.06014.60
5.3.260.0330.06714.63
5.3.250.0400.07014.70
5.3.240.0400.07314.58
5.3.230.0270.06714.58
5.3.220.0270.05014.51
5.3.210.0370.05714.63
5.3.200.0270.06014.66
5.3.190.0400.05314.53
5.3.180.0330.06014.57
5.3.170.0270.05714.63
5.3.160.0430.05714.54
5.3.150.0230.06014.51
5.3.140.0400.04714.55
5.3.130.0270.07014.53
5.3.120.0530.05314.57
5.3.110.0370.06314.43
5.3.100.0430.05013.95
5.3.90.0370.04713.93
5.3.80.0530.06714.00
5.3.70.0400.05014.10
5.3.60.0370.07013.96
5.3.50.0470.06013.89
5.3.40.0500.05713.93
5.3.30.0370.04713.90
5.3.20.0530.05313.67
5.3.10.0400.06013.55
5.3.00.0270.08313.62
5.2.170.0270.05711.18
5.2.160.0300.03311.19
5.2.150.0400.05711.08
5.2.140.0500.05711.17
5.2.130.0370.04011.25
5.2.120.0300.03711.09
5.2.110.0200.04311.13
5.2.100.0230.04011.06
5.2.90.0230.04311.13
5.2.80.0270.04711.13
5.2.70.0230.04311.13
5.2.60.0270.05311.00
5.2.50.0230.04710.99
5.2.40.0230.04010.92
5.2.30.0300.03310.94
5.2.20.0200.05011.00
5.2.10.0300.04310.87
5.2.00.0270.03710.71
5.1.60.0300.0309.99
5.1.50.0130.04010.04
5.1.40.0200.04010.04
5.1.30.0200.04010.34
5.1.20.0330.04010.50
5.1.10.0230.04010.13
5.1.00.0230.04710.19
5.0.50.0130.0308.69
5.0.40.0100.0308.45
5.0.30.0100.0478.27
5.0.20.0130.0278.21
5.0.10.0170.0238.14
5.0.00.0170.0478.19
4.4.90.0130.0235.95
4.4.80.0130.0235.87
4.4.70.0030.0275.85
4.4.60.0100.0305.80
4.4.50.0130.0235.82
4.4.40.0130.0505.90
4.4.30.0230.0175.91
4.4.20.0130.0235.94
4.4.10.0030.0305.98
4.4.00.0100.0435.85
4.3.110.0170.0235.82
4.3.100.0100.0205.87
4.3.90.0170.0175.89
4.3.80.0100.0335.77
4.3.70.0130.0235.77
4.3.60.0070.0235.78
4.3.50.0070.0235.90
4.3.40.0100.0375.76
4.3.30.0100.0174.56
4.3.20.0030.0334.60
4.3.10.0030.0274.49
4.3.00.0100.0277.15

preferences:
41.77 ms | 401 KiB | 5 Q