3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(is_callable('curl_init')){ echo "Enabled"; } else { echo "Not enabled"; } $url = "https://www.google.com"; echo $url; $response = getPriceFromFlipkart($url); echo $response; function getPriceFromFlipkart($url) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 10.10; labnol;) 3v4l.org"); curl_setopt($curl, CURLOPT_FAILONERROR, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $html = curl_exec($curl); curl_close($curl); return $html; }

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.70.0040.01116.61
8.3.60.0070.00716.50
8.3.50.0110.00821.08
8.3.40.0180.00318.84
8.3.30.0140.00018.68
8.3.20.0040.00420.19
8.3.10.0000.00923.66
8.3.00.0080.00019.68
8.2.180.0040.01118.30
8.2.170.0070.01022.96
8.2.160.0070.00720.33
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0000.00817.63
8.2.110.0090.00022.13
8.2.100.0080.00417.75
8.2.90.0040.00419.23
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0060.00617.93
8.2.50.0080.00018.07
8.2.40.0030.00521.11
8.2.30.0040.00420.57
8.2.20.0040.00417.78
8.2.10.0050.00218.02
8.2.00.0040.00418.02
8.1.280.0110.00325.92
8.1.270.0130.00723.96
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00722.57
8.1.230.0070.00417.42
8.1.220.0050.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0020.00518.10
8.1.170.0040.00420.37
8.1.160.0000.00821.84
8.1.150.0030.00618.77
8.1.140.0030.00619.53
8.1.130.0000.00717.66
8.1.120.0040.00417.33
8.1.110.0040.00417.38
8.1.100.0040.00417.43
8.1.90.0040.00417.30
8.1.80.0060.00317.44
8.1.70.0000.00717.31
8.1.60.0040.00417.63
8.1.50.0080.00017.52
8.1.40.0040.00417.48
8.1.30.0030.00517.64
8.1.20.0070.00317.71
8.1.10.0050.00217.58
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.45
8.0.270.0000.00717.19
8.0.260.0000.00817.29
8.0.250.0040.00417.05
8.0.240.0040.00417.03
8.0.230.0060.00316.85
8.0.220.0020.00516.90
8.0.210.0050.00316.93
8.0.200.0000.00617.02
8.0.190.0040.00416.98
8.0.180.0030.00616.89
8.0.170.0060.00316.96
8.0.160.0000.00716.94
8.0.150.0040.00416.75
8.0.140.0020.00516.88
8.0.130.0050.00013.33
8.0.120.0040.00416.89
8.0.110.0000.00816.81
8.0.100.0050.00216.71
8.0.90.0050.00316.89
8.0.80.0110.00416.96
8.0.70.0040.00416.79
8.0.60.0020.00516.86
8.0.50.0000.00716.90
8.0.30.0090.01117.22
8.0.20.0100.00917.40
8.0.10.0050.00316.99
8.0.00.0070.01116.80
7.4.330.0000.00515.08
7.4.320.0060.00016.45
7.4.300.0030.00316.67
7.4.290.0050.00316.61
7.4.280.0040.00416.49
7.4.270.0000.00816.65
7.4.260.0030.00316.37
7.4.250.0040.00416.57
7.4.240.0050.00316.68
7.4.230.0000.00716.41
7.4.220.0110.00716.63
7.4.210.0100.00716.42
7.4.200.0000.00716.37
7.4.160.0150.00616.46
7.4.150.0120.00517.40
7.4.140.0140.00917.86
7.4.130.0110.01416.43
7.4.120.0120.00616.59
7.4.110.0100.01416.43
7.4.100.0100.00716.39
7.4.90.0180.00316.39
7.4.80.0140.00419.39
7.4.70.0070.01016.57
7.4.60.0100.00616.57
7.4.50.0060.00316.39
7.4.40.0110.00516.61
7.4.30.0100.01016.56
7.4.00.0070.00414.86
7.3.330.0000.00513.39
7.3.320.0000.00613.39
7.3.310.0030.00316.29
7.3.300.0040.00416.36
7.3.290.0130.00516.38
7.3.280.0090.00616.41
7.3.270.0090.00917.40
7.3.260.0120.00616.70
7.3.240.0100.01116.46
7.3.230.0070.01416.57
7.3.210.0070.01016.45
7.3.200.0110.01616.73
7.3.190.0150.00016.35
7.3.180.0100.00616.44
7.3.170.0080.00816.38
7.3.160.0130.00316.55
7.2.330.0110.00816.54
7.2.320.0030.01316.43
7.2.310.0080.00816.52
7.2.300.0090.00616.66
7.2.290.0140.00316.27
7.2.60.0410.00516.75
7.2.00.0120.00619.43
7.1.200.0100.00315.57
7.1.100.0090.00618.31
7.1.70.0060.00617.03
7.1.60.0110.01419.50
7.1.50.0060.01317.09
7.1.00.0100.06722.36
7.0.200.0040.00416.77
7.0.60.0200.07019.96
7.0.50.0100.08317.96
7.0.40.0130.07720.14
7.0.30.0330.06720.23
7.0.20.0270.07720.03
7.0.10.0070.04020.21
7.0.00.0030.09020.16
5.6.280.0000.03721.09
5.6.210.0130.07320.67
5.6.200.0100.06318.18
5.6.190.0130.06020.68
5.6.180.0330.07720.48
5.6.170.0330.07720.47
5.6.160.0100.08020.44
5.6.150.0000.04318.14
5.6.140.0070.08018.17
5.6.130.0070.08018.27
5.6.120.0070.05721.02
5.6.110.0130.03021.02
5.6.100.0100.08721.13
5.6.90.0070.07321.00
5.6.80.0000.07720.36
5.5.350.0130.07020.41
5.5.340.0030.08317.99
5.5.330.0130.06720.25
5.5.320.3870.05020.35
5.5.310.0200.04320.51
5.5.300.0070.04718.07
5.5.290.0030.08318.07
5.5.280.0170.07720.96
5.5.270.0030.05320.66
5.5.260.0070.08020.88
5.5.250.0030.04020.56
5.5.240.0070.07020.25
5.4.450.0530.06319.38
5.4.440.0730.06719.38
5.4.430.0700.07019.44
5.4.420.0730.06319.47
5.4.410.0730.04319.45
5.4.400.0530.05719.06
5.4.390.0630.06019.12
5.4.380.0800.06019.01
5.4.370.0700.06019.38
5.4.360.0730.05019.06
5.4.350.0630.05019.30
5.4.340.0670.05019.25
5.4.320.0670.05319.39
5.4.310.0670.05019.26
5.4.300.0870.06019.14
5.4.290.0700.06019.27
5.4.280.0700.06719.20
5.4.270.0600.05318.83
5.4.260.0730.05719.05
5.4.250.0830.06319.27
5.4.240.0630.05718.86
5.4.230.0570.05719.27
5.4.220.0670.05319.29
5.4.210.0800.04319.14
5.4.200.0670.05718.86
5.4.190.0770.04719.21
5.4.180.0670.05719.27
5.4.170.0630.05719.25
5.4.160.0670.06319.12
5.4.150.0600.06319.26
5.4.140.0800.05316.52
5.4.130.0630.06716.25
5.4.120.0730.04716.67
5.4.110.0600.05016.64
5.4.100.0670.04316.52
5.4.90.0570.05016.62
5.4.80.0600.04316.23
5.4.70.0500.06016.51
5.4.60.0530.05716.42
5.4.50.0770.06016.57
5.4.40.0800.06016.56
5.4.30.0630.05316.56
5.4.20.0530.05316.57
5.4.10.0630.05016.16
5.4.00.0670.05015.82

preferences:
54.04 ms | 401 KiB | 5 Q