3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_data($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $data = curl_exec($ch); curl_close($ch); return $data; } $returned_content = get_data('http://davidwalsh.name'); ?>

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.0140.00718.31
8.3.50.0100.01016.38
8.3.40.0070.00718.59
8.3.30.0070.00718.67
8.3.20.0090.00620.38
8.3.10.0080.00021.77
8.3.00.0080.00021.94
8.2.180.0070.01016.63
8.2.170.0060.00922.96
8.2.160.0140.00420.53
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00421.00
8.2.120.0000.00726.35
8.2.110.0050.00521.00
8.2.100.0110.00017.68
8.2.90.0040.00419.01
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0040.00417.80
8.2.50.0060.00318.09
8.2.40.0000.00822.33
8.2.30.0040.00419.39
8.2.20.0040.00417.61
8.2.10.0050.00317.89
8.2.00.0040.00417.89
8.1.280.0120.00325.92
8.1.270.0080.00022.09
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00923.73
8.1.230.0070.00420.89
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0030.00517.10
8.1.180.0080.00018.10
8.1.170.0090.00018.41
8.1.160.0040.00420.71
8.1.150.0030.00318.96
8.1.140.0030.00519.53
8.1.130.0000.00717.59
8.1.120.0000.00717.35
8.1.110.0000.00717.22
8.1.100.0000.00717.39
8.1.90.0000.00717.32
8.1.80.0000.00717.41
8.1.70.0000.00717.41
8.1.60.0080.00017.42
8.1.50.0080.00017.43
8.1.40.0040.00417.46
8.1.30.0030.00617.54
8.1.20.0040.00417.60
8.1.10.0030.00617.45
8.1.00.0040.00417.35
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0050.00317.19
8.0.260.0030.00317.08
8.0.250.0000.00716.80
8.0.240.0000.00716.86
8.0.230.0000.00717.01
8.0.220.0030.00316.80
8.0.210.0080.00016.77
8.0.200.0000.01017.01
8.0.190.0070.00317.01
8.0.180.0030.00516.90
8.0.170.0000.00716.83
8.0.160.0000.00816.98
8.0.150.0080.00016.80
8.0.140.0000.00816.79
8.0.130.0000.00613.33
8.0.120.0040.00416.85
8.0.110.0040.00416.74
8.0.100.0040.00416.86
8.0.90.0000.00716.95
8.0.80.0000.01516.88
8.0.70.0040.00416.89
8.0.60.0040.00416.90
8.0.50.0040.00416.70
8.0.30.0080.01217.18
8.0.20.0110.00717.40
8.0.10.0030.00316.83
8.0.00.0100.00916.77
7.4.330.0050.00016.77
7.4.320.0000.00616.40
7.4.300.0040.00416.57
7.4.290.0030.00316.46
7.4.280.0070.00016.49
7.4.270.0040.00416.50
7.4.260.0000.00716.53
7.4.250.0000.00816.43
7.4.240.0000.00816.59
7.4.230.0040.00416.58
7.4.220.0070.01116.62
7.4.210.0090.00816.57
7.4.200.0030.00316.26
7.4.160.0100.00616.40
7.4.150.0150.00317.40
7.4.140.0050.01917.86
7.4.130.0110.00716.42
7.4.120.0060.01116.57
7.4.110.0140.00316.37
7.4.100.0090.00916.64
7.4.90.0060.01616.48
7.4.80.0100.01019.39
7.4.70.0130.00316.63
7.4.60.0120.00816.45
7.4.50.0070.00716.57
7.4.40.0130.00316.72
7.4.30.0110.01116.37
7.4.00.0030.00915.13
7.3.330.0000.00613.29
7.3.320.0000.00613.14
7.3.310.0000.00816.34
7.3.300.0030.00316.32
7.3.290.0070.00016.29
7.3.280.0080.00816.33
7.3.270.0110.00717.40
7.3.260.0070.01116.24
7.3.250.0080.00916.52
7.3.240.0090.00916.44
7.3.230.0070.01016.55
7.3.210.0130.00316.29
7.3.200.0090.01519.39
7.3.190.0100.01016.37
7.3.180.0120.00616.40
7.3.170.0100.00616.39
7.3.160.0130.00716.47
7.3.00.0160.00316.52
7.2.330.0140.00316.52
7.2.320.0090.00616.51
7.2.310.0100.00616.45
7.2.300.0130.00316.69
7.2.290.0130.00316.53
7.2.130.0120.00616.53
7.2.120.0060.00916.77
7.2.110.0090.00916.80
7.2.100.0100.00716.76
7.2.90.0110.00416.91
7.2.80.0150.00416.77
7.2.70.0110.00416.85
7.2.60.0090.00716.69
7.2.50.0160.00016.90
7.2.40.0100.00716.90
7.2.30.0150.00316.27
7.2.20.0160.00316.80
7.2.10.0170.00016.48
7.2.00.0060.00817.91
7.1.250.0040.01115.43
7.1.240.0110.00415.48
7.1.230.0060.00915.57
7.1.220.0060.01315.58
7.1.210.0060.01015.18
7.1.200.0070.00715.67
7.1.190.0160.00315.50
7.1.180.0040.00815.47
7.1.170.0060.00915.44
7.1.160.0060.00915.70
7.1.150.0110.00315.43
7.1.140.0090.00615.56
7.1.130.0040.01115.52
7.1.120.0080.01115.29
7.1.110.0030.00915.63
7.1.100.0090.00516.55
7.1.90.0130.00715.57
7.1.80.0100.00615.70
7.1.70.0030.00916.28
7.1.60.0130.01017.43
7.1.50.0070.01116.31
7.1.40.0060.00915.54
7.1.30.0090.00615.66
7.1.20.0060.00915.55
7.1.10.0060.00915.60
7.1.00.0120.03719.00
7.0.330.0060.00615.20
7.0.320.0110.00715.07
7.0.310.0060.00615.02
7.0.300.0070.01015.41
7.0.290.0030.01214.94
7.0.280.0090.00614.95
7.0.270.0140.00415.26
7.0.260.0100.00715.39
7.0.250.0080.00815.41
7.0.240.0070.01015.41
7.0.230.0130.00315.48
7.0.220.0110.00415.43
7.0.210.0100.00315.10
7.0.200.0260.00614.92
7.0.190.0090.00815.31
7.0.180.0060.00915.49
7.0.170.0070.00415.32
7.0.160.0100.00715.13
7.0.150.0120.00615.35
7.0.140.0080.00815.19
7.0.130.0040.01215.38
7.0.120.0070.01115.34
7.0.110.0150.00415.39
7.0.100.0060.00915.23
7.0.90.0060.00915.38
7.0.80.0130.00315.42
7.0.70.0130.00315.21
7.0.60.0130.04318.46
7.0.50.0100.04016.51
7.0.40.0030.02816.60
7.0.30.0120.02716.77
7.0.20.0210.04016.68
7.0.10.0020.03916.63
7.0.00.0080.02616.67
5.6.380.0070.01014.13
5.6.370.0000.01514.05
5.6.360.0070.00714.16
5.6.350.0000.00814.26
5.6.340.0070.00714.01
5.6.330.0040.01314.01
5.6.320.0000.01713.83
5.6.310.0060.00914.08
5.6.300.0040.00914.41
5.6.290.0110.00313.91
5.6.280.0060.03717.38
5.6.270.0060.01214.16
5.6.260.0140.00513.68
5.6.250.0070.01114.07
5.6.240.0110.00613.92
5.6.230.0040.01214.06
5.6.220.0120.00814.04
5.6.210.0050.04017.26
5.6.200.0060.03916.05
5.6.190.0020.02617.23
5.6.180.0150.03017.44
5.6.170.0170.03817.11
5.6.160.0080.03417.14
5.6.150.0070.04315.95
5.6.140.0120.03516.03
5.6.130.0120.04216.09
5.6.120.0050.02717.53
5.6.110.0080.04617.32
5.6.100.0080.04817.56
5.6.90.0110.03817.64
5.6.80.0060.04117.18
5.6.70.0060.00613.96
5.6.60.0070.00413.84
5.6.50.0060.00614.01
5.6.40.0000.01014.09
5.6.30.0030.01014.06
5.6.20.0040.00813.89
5.6.10.0030.00614.24
5.6.00.0070.00714.04
5.5.380.0030.00911.08
5.5.370.0030.01010.64
5.5.360.0060.00610.79
5.5.350.0050.02915.56
5.5.340.0100.04014.32
5.5.330.0080.02715.49
5.5.320.0110.04115.54
5.5.310.0170.04015.55
5.5.300.0050.02814.32
5.5.290.0080.04114.38
5.5.280.0030.04815.91
5.5.270.0090.02415.59
5.5.260.0160.04015.78
5.5.250.0050.02415.70
5.5.240.0120.04215.45
5.5.230.0100.00010.90
5.5.220.0030.00510.53
5.5.210.0060.00311.02
5.5.200.0060.00310.82
5.5.190.0050.00010.83
5.5.180.0000.00810.87
5.5.170.0080.00010.78
5.5.160.0030.00310.75
5.5.150.0000.00610.56
5.5.140.0030.00310.82
5.5.130.0060.00010.95
5.5.120.0060.00310.59
5.5.110.0000.01110.77
5.5.100.0030.00610.91
5.5.90.0000.01410.95
5.5.80.0030.01010.91
5.5.70.0070.00010.75
5.5.60.0040.00411.06
5.5.50.0080.00311.00
5.5.40.0030.00510.66
5.5.30.0060.00610.46
5.5.20.0000.00610.81
5.5.10.0070.00410.89
5.5.00.0040.00810.96

preferences:
61.01 ms | 400 KiB | 5 Q