3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init("http://www.google.com/"); print $ch; curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1&postvar2=value2&postvar3=value3"); // in real life you should use something like: // curl_setopt($ch, CURLOPT_POSTFIELDS, // http_build_query(array('postvar1' => 'value1'))); // receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec ($ch); curl_close ($ch); // further processing .... if ($server_output == "OK") { print "OK"; } else { print "FAIL"; } var_dump($server_output); ?>

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.0110.00418.30
8.3.50.0100.00721.92
8.3.40.0100.00518.79
8.3.30.0100.01019.19
8.3.20.0080.00020.30
8.3.10.0040.00421.95
8.3.00.0040.00422.43
8.2.180.0150.00316.75
8.2.170.0070.01022.96
8.2.160.0130.00020.94
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0090.00626.16
8.2.120.0040.00419.38
8.2.110.0030.00620.43
8.2.100.0120.00017.79
8.2.90.0040.00418.22
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0000.00917.93
8.2.50.0000.00818.07
8.2.40.0040.00418.21
8.2.30.0070.00017.89
8.2.20.0040.00417.73
8.2.10.0030.00519.45
8.2.00.0000.00717.71
8.1.280.0070.01025.92
8.1.270.0040.00422.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0000.01120.90
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00817.35
8.1.190.0080.00017.41
8.1.180.0040.00418.65
8.1.170.0000.00818.46
8.1.160.0070.00021.89
8.1.150.0070.00018.44
8.1.140.0040.00417.30
8.1.130.0040.00417.66
8.1.120.0000.00717.41
8.1.110.0050.00317.40
8.1.100.0040.00417.42
8.1.90.0030.00317.23
8.1.80.0030.00417.36
8.1.70.0000.00717.23
8.1.60.0060.00317.45
8.1.50.0030.00617.38
8.1.40.0040.00417.38
8.1.30.0080.00017.59
8.1.20.0040.00417.45
8.1.10.0000.01017.53
8.1.00.0000.00817.32
8.0.300.0000.00820.00
8.0.290.0070.00017.05
8.0.280.0000.00718.32
8.0.270.0030.00317.14
8.0.260.0000.00616.85
8.0.250.0050.00216.88
8.0.240.0030.00316.99
8.0.230.0030.00316.93
8.0.220.0030.00316.91
8.0.210.0040.00416.82
8.0.200.0030.00316.98
8.0.190.0000.00717.04
8.0.180.0030.00316.93
8.0.170.0000.00716.94
8.0.160.0040.00416.79
8.0.150.0060.00316.75
8.0.140.0050.00316.88
8.0.130.0050.00013.34
8.0.120.0050.00316.93
8.0.110.0000.00716.86
8.0.100.0030.00516.78
8.0.90.0040.00416.81
8.0.80.0080.00816.98
8.0.70.0050.00316.88
8.0.60.0000.00716.86
8.0.50.0000.00716.85
8.0.30.0100.01017.07
8.0.20.0150.00417.40
8.0.10.0040.00416.75
8.0.00.0080.01016.71
7.4.330.0040.00415.00
7.4.320.0070.00016.53
7.4.300.0000.00616.42
7.4.290.0000.00716.52
7.4.280.0000.00716.54
7.4.270.0030.00316.48
7.4.260.0070.00416.43
7.4.250.0040.00416.42
7.4.240.0060.00116.50
7.4.230.0000.00716.32
7.4.220.0110.00616.60
7.4.210.0090.00816.61
7.4.200.0040.00316.28
7.4.190.0040.00416.66
7.4.160.0120.00616.54
7.4.150.0100.00717.40
7.4.140.0060.01117.86
7.4.130.0070.01316.60
7.4.120.0100.00816.53
7.4.110.0070.01016.60
7.4.100.0090.00916.68
7.4.90.0120.01216.56
7.4.80.0100.01019.39
7.4.70.0100.01016.46
7.4.60.0090.00916.42
7.4.50.0000.00916.61
7.4.40.0090.00622.77
7.4.30.0180.00016.54
7.4.00.0030.01314.86
7.3.330.0050.00013.19
7.3.320.0050.00013.02
7.3.310.0070.00016.22
7.3.300.0030.00316.29
7.3.290.0080.00716.26
7.3.280.0100.00916.29
7.3.270.0120.01217.40
7.3.260.0070.01016.36
7.3.250.0100.01016.31
7.3.240.0100.01016.26
7.3.230.0030.01316.39
7.3.210.0130.00416.34
7.3.200.0120.00619.39
7.3.190.0120.00816.34
7.3.180.0120.00916.20
7.3.170.0140.00416.42
7.3.160.0060.00916.43
7.3.120.0030.01014.57
7.2.330.0160.00416.15
7.2.320.0100.00716.30
7.2.310.0070.01516.42
7.2.300.0040.01316.67
7.2.290.0000.01716.57
7.2.60.0080.00816.88
7.2.00.0030.01219.00
7.1.200.0040.00415.41
7.1.100.0040.00718.05
7.1.70.0060.00317.03
7.1.60.0070.01819.82
7.1.50.0120.00916.88
7.1.00.0000.07722.31
7.0.200.0030.00716.79
7.0.140.0030.07322.01
7.0.60.0130.08019.84
7.0.50.0070.05017.86
7.0.40.0070.04020.27
7.0.30.0130.04720.18
7.0.20.0370.07020.02
7.0.10.0070.07320.09
7.0.00.0070.04320.27
5.6.210.0170.07320.50
5.6.200.0070.08018.22
5.6.190.0030.06020.35
5.6.180.0270.07020.41
5.6.170.0170.04020.50
5.6.160.0100.03320.61
5.6.150.0070.04018.20
5.6.140.0070.05018.18
5.6.130.0070.05318.09
5.6.120.0000.04720.89
5.6.110.0170.08021.11
5.6.100.0100.08021.00
5.6.90.0030.04020.96
5.6.80.0070.05720.40
5.5.350.0030.08020.35
5.5.340.0000.04017.91
5.5.330.0070.05320.21
5.5.320.0230.04020.31
5.5.310.0200.04020.29
5.5.300.0000.08717.92
5.5.290.0100.04018.02
5.5.280.0070.07720.80
5.5.270.0070.08320.96
5.5.260.0100.08020.76
5.5.250.0030.04720.68
5.5.240.0300.07320.13
5.4.450.0200.05319.52
5.4.440.0970.04719.21
5.4.430.0230.06319.36
5.4.420.0900.08019.40
5.4.410.0830.06719.44
5.4.400.0530.06719.25
5.4.390.0570.05319.23
5.4.380.0230.05318.57
5.4.370.0330.04318.63
5.4.360.0270.05718.66
5.4.350.0370.05018.50
5.4.340.0300.05018.64
5.4.320.0070.03512.46
5.4.310.0110.04012.45
5.4.300.0090.03212.45
5.4.290.0090.03712.45
5.4.280.0070.03612.35
5.4.270.0060.03612.32
5.4.260.0080.03612.32
5.4.250.0080.04012.32
5.4.240.0070.03812.32
5.4.230.0050.03912.31
5.4.220.0030.03912.31
5.4.210.0090.04112.31
5.4.200.0060.04612.31
5.4.190.0090.05112.30
5.4.180.0100.03712.30
5.4.170.0040.04312.32
5.4.160.0070.05712.31
5.4.150.0080.04712.31
5.4.140.0120.04711.99
5.4.130.0100.04211.98
5.4.120.0140.04311.94
5.4.110.0060.05011.94
5.4.100.0060.03711.93
5.4.90.0050.04111.93
5.4.80.0130.03311.93
5.4.70.0070.03511.93
5.4.60.0060.04111.93
5.4.50.0040.04311.93
5.4.40.0050.04211.91
5.4.30.0090.03511.91
5.4.20.0060.03511.92
5.4.10.0030.04311.91
5.4.00.0050.03811.40
5.3.290.0050.05212.80
5.3.280.0090.03712.71
5.3.270.0090.03912.72
5.3.260.0100.05312.72
5.3.250.0090.05312.72
5.3.240.0110.05112.72
5.3.230.0080.03712.71
5.3.220.0070.03812.68
5.3.210.0080.04312.68
5.3.200.0060.03812.68
5.3.190.0080.04412.68
5.3.180.0100.05212.68
5.3.170.0080.04912.67
5.3.160.0100.05812.67
5.3.150.0080.05612.67
5.3.140.0170.04312.66
5.3.130.0150.05212.65
5.3.120.0090.03912.66
5.3.110.0100.04312.66
5.3.100.0110.06612.12
5.3.90.0070.04512.08
5.3.80.0080.04212.07
5.3.70.0050.03812.07
5.3.60.0060.03712.06
5.3.50.0030.04012.00
5.3.40.0050.04012.00
5.3.30.0060.03711.94
5.3.20.0080.04211.69
5.3.10.0120.04411.65
5.3.00.0110.04711.64
5.2.170.0070.0429.14
5.2.160.0070.0449.14
5.2.150.0090.0409.14
5.2.140.0090.0409.14
5.2.130.0190.0509.10
5.2.120.0070.0529.10
5.2.110.0080.0369.11
5.2.100.0060.0279.11
5.2.90.0070.0279.09
5.2.80.0050.0449.09
5.2.70.0130.0429.09
5.2.60.0160.0739.05
5.2.50.0040.0579.02
5.2.40.0100.0298.99
5.2.30.0090.0468.97
5.2.20.0110.0418.96
5.2.10.0050.0318.88
5.2.00.0070.0278.75
5.1.60.0020.0268.03
5.1.50.0070.0228.03
5.1.40.0020.0288.02
5.1.30.0050.0268.36
5.1.20.0070.0248.39
5.1.10.0040.0268.11
5.1.00.0050.0258.11
5.0.50.0040.0206.59
5.0.40.0040.0196.45
5.0.30.0050.0306.26
5.0.20.0030.0226.23
5.0.10.0030.0256.21
5.0.00.0060.0346.20
4.4.90.0050.0154.78
4.4.80.0050.0144.76
4.4.70.0020.0184.76
4.4.60.0020.0164.76
4.4.50.0030.0164.77
4.4.40.0010.0274.71
4.4.30.0030.0164.76
4.4.20.0020.0164.84
4.4.10.0010.0174.85
4.4.00.0020.0264.76
4.3.110.0010.0184.67
4.3.100.0020.0194.67
4.3.90.0040.0354.63
4.3.80.0030.0344.58
4.3.70.0030.0204.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0010.0294.54
4.3.30.0030.0213.27
4.3.20.0010.0233.26
4.3.10.0020.0163.22
4.3.00.0030.0238.11

preferences:
42.45 ms | 401 KiB | 5 Q