3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://www.google.com/"); 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.0120.00918.68
8.3.50.0130.00521.99
8.3.40.0080.00618.79
8.3.30.0090.00919.09
8.3.20.0000.01420.28
8.3.10.0110.00722.08
8.3.00.0090.00022.39
8.2.180.0100.01016.63
8.2.170.0070.01322.96
8.2.160.0100.00320.89
8.2.150.0070.01124.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00319.23
8.2.110.0070.00322.14
8.2.100.0070.00419.45
8.2.90.0050.00319.28
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0000.00817.91
8.2.20.0000.00817.54
8.2.10.0050.00319.54
8.2.00.0040.00417.56
8.1.280.0140.00325.92
8.1.270.0050.00323.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00023.86
8.1.230.0080.00319.11
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00717.23
8.1.190.0000.00917.39
8.1.180.0000.00818.46
8.1.170.0080.00018.56
8.1.160.0040.00421.96
8.1.150.0030.00518.43
8.1.140.0000.00717.34
8.1.130.0070.00017.73
8.1.120.0030.00317.26
8.1.110.0030.00517.24
8.1.100.0000.00717.31
8.1.90.0050.00217.34
8.1.80.0000.00817.26
8.1.70.0040.00417.33
8.1.60.0110.00017.41
8.1.50.0000.00717.46
8.1.40.0040.00417.45
8.1.30.0040.00417.56
8.1.20.0000.00817.50
8.1.10.0040.00417.37
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0000.00717.16
8.0.280.0000.00718.37
8.0.270.0030.00317.21
8.0.260.0060.00016.87
8.0.250.0000.00716.94
8.0.240.0080.00016.83
8.0.230.0000.00716.86
8.0.220.0070.00016.86
8.0.210.0000.00716.96
8.0.200.0040.00416.95
8.0.190.0000.00816.94
8.0.180.0000.00716.93
8.0.170.0040.00416.84
8.0.160.0050.00216.78
8.0.150.0040.00416.88
8.0.140.0000.00716.79
8.0.130.0030.00313.32
8.0.120.0000.00816.82
8.0.110.0000.00716.82
8.0.100.0000.00816.75
8.0.90.0070.00016.79
8.0.80.0090.01216.84
8.0.70.0000.00716.85
8.0.60.0040.00416.71
8.0.50.0000.00716.78
8.0.30.0160.00316.94
8.0.20.0100.00817.40
8.0.10.0000.00716.96
8.0.00.0120.00816.81
7.4.330.0020.00215.00
7.4.320.0030.00316.38
7.4.300.0040.00416.55
7.4.290.0030.00316.55
7.4.280.0080.00016.44
7.4.270.0030.00316.54
7.4.260.0030.00316.42
7.4.250.0040.00416.51
7.4.240.0040.00416.48
7.4.230.0030.00316.64
7.4.220.0090.01316.64
7.4.210.0040.01016.38
7.4.200.0030.00316.35
7.4.190.0000.00716.70
7.4.160.0130.00316.57
7.4.150.0140.00417.40
7.4.140.0110.01017.86
7.4.130.0120.01016.47
7.4.120.0080.01116.58
7.4.110.0030.01816.35
7.4.100.0090.00916.46
7.4.90.0090.00916.56
7.4.80.0130.01019.39
7.4.70.0120.00616.64
7.4.60.0100.00716.59
7.4.50.0080.00016.29
7.4.40.0030.01422.77
7.4.30.0060.01016.66
7.4.10.0040.01415.03
7.4.00.0070.01014.80
7.3.330.0030.00313.03
7.3.320.0040.00413.19
7.3.310.0000.00716.21
7.3.300.0000.00716.18
7.3.290.0090.01216.27
7.3.280.0080.00916.28
7.3.270.0120.00617.40
7.3.260.0000.01716.58
7.3.250.0110.00616.35
7.3.240.0060.01216.27
7.3.230.0060.00916.39
7.3.210.0070.01016.23
7.3.200.0090.00819.39
7.3.190.0060.01316.43
7.3.180.0100.00716.41
7.3.170.0060.00916.31
7.3.160.0040.01216.60
7.3.130.0060.01214.96
7.3.120.0030.01114.78
7.3.110.0030.01614.98
7.3.100.0000.01414.59
7.3.90.0070.00714.79
7.3.80.0090.00314.77
7.3.70.0070.00714.61
7.3.60.0080.00614.42
7.3.50.0090.00314.59
7.3.40.0000.01414.85
7.3.30.0090.00614.74
7.3.20.0070.00716.79
7.3.10.0090.00016.61
7.3.00.0110.00416.40
7.2.330.0180.00316.74
7.2.320.0200.00516.30
7.2.310.0090.00716.68
7.2.300.0130.00316.68
7.2.290.0130.00316.27
7.2.260.0070.01114.84
7.2.250.0030.01414.53
7.2.240.0080.00814.97
7.2.230.0050.00815.09
7.2.220.0000.01515.07
7.2.210.0140.00014.79
7.2.200.0100.00714.89
7.2.190.0030.01015.01
7.2.180.0100.00314.69
7.2.170.0100.00315.03
7.2.160.0030.00715.04
7.2.150.0040.01116.81
7.2.140.0120.00616.54
7.2.130.0030.01116.59
7.2.120.0030.00916.57
7.2.110.0070.00716.84
7.2.100.0070.00716.84
7.2.90.0030.00916.86
7.2.80.0110.00316.75
7.2.70.0040.00716.48
7.2.60.0080.00616.81
7.2.50.0000.01316.84
7.2.40.0060.00916.77
7.2.30.0060.00716.57
7.2.20.0030.01516.82
7.2.10.0060.00316.69
7.2.00.0050.00918.03
7.1.330.0060.00915.32
7.1.320.0030.01015.35
7.1.310.0100.00315.45
7.1.300.0000.01515.34
7.1.290.0070.00715.66
7.1.280.0030.00915.54
7.1.270.0060.00615.55
7.1.260.0030.01015.77
7.1.250.0040.00715.52
7.1.240.0050.00515.73
7.1.230.0090.00015.42
7.1.220.0000.01115.50
7.1.210.0030.00715.66
7.1.200.0040.00915.45
7.1.190.0030.00715.43
7.1.180.0040.01115.61
7.1.170.0000.01215.79
7.1.160.0040.01115.57
7.1.150.0040.01415.77
7.1.140.0030.01015.35
7.1.130.0030.00515.71
7.1.120.0110.00415.58
7.1.110.0090.00615.50
7.1.100.0020.00716.84
7.1.90.0000.01315.44
7.1.80.0040.00715.41
7.1.70.0060.00816.38
7.1.60.0120.00817.72
7.1.50.0070.01116.12
7.1.40.0060.00615.49
7.1.30.0040.01115.45
7.1.20.0090.00315.62
7.1.10.0120.00615.43
7.1.00.0060.04018.89
7.0.330.0040.00815.27
7.0.320.0080.00415.46
7.0.310.0000.01115.20
7.0.300.0060.00615.23
7.0.290.0040.01515.23
7.0.280.0060.01115.18
7.0.270.0030.01015.31
7.0.260.0060.00615.18
7.0.250.0060.00715.24
7.0.240.0060.00615.27
7.0.230.0050.00315.26
7.0.220.0030.01015.44
7.0.210.0030.01315.34
7.0.200.0030.00715.99
7.0.190.0070.01015.35
7.0.180.0120.00315.27
7.0.170.0060.00615.30
7.0.160.0060.00915.32
7.0.150.0110.00015.29
7.0.140.0050.04018.72
7.0.130.0000.01515.25
7.0.120.0070.00715.18
7.0.110.0030.01015.43
7.0.100.0020.01115.35
7.0.90.0070.00715.43
7.0.80.0040.00815.36
7.0.70.0040.01115.39
7.0.60.0100.04317.53
7.0.50.0050.04516.54
7.0.40.0050.03116.87
7.0.30.0190.02816.63
7.0.20.0150.02216.77
7.0.10.0100.02816.55
7.0.00.0050.03416.69
5.6.400.0060.00614.07
5.6.390.0030.01414.29
5.6.380.0030.01014.09
5.6.370.0090.00013.64
5.6.360.0030.00714.38
5.6.350.0070.01013.93
5.6.340.0140.00313.79
5.6.330.0080.00814.44
5.6.320.0030.00913.78
5.6.310.0100.00714.16
5.6.300.0030.01414.44
5.6.290.0000.01414.26
5.6.280.0030.04217.58
5.6.270.0130.00314.45
5.6.260.0090.00614.15
5.6.250.0000.01114.23
5.6.240.0060.00314.39
5.6.230.0100.00314.20
5.6.220.0040.01114.41
5.6.210.0080.04417.36
5.6.200.0070.03016.04
5.6.190.0140.04017.32
5.6.180.2280.03217.29
5.6.170.0160.02117.21
5.6.160.0050.04617.15
5.6.150.0030.02916.11
5.6.140.0050.02615.97
5.6.130.0060.03116.31
5.6.120.0010.02817.56
5.6.110.0110.03017.55
5.6.100.0060.04117.50
5.6.90.0040.04917.59
5.6.80.0100.02217.22
5.6.70.0150.04317.23
5.6.60.0030.00513.92
5.6.50.0040.01113.90
5.6.40.0070.01014.15
5.6.30.0030.01014.12
5.6.20.0090.00613.97
5.6.10.0140.00014.12
5.6.00.0140.00014.05
5.5.380.0090.00614.21
5.5.370.0000.01414.07
5.5.360.0030.00713.68
5.5.350.0060.04117.33
5.5.340.0050.02216.01
5.5.330.0070.04517.08
5.5.320.0200.03817.15
5.5.310.0210.03717.23
5.5.300.0070.04516.12
5.5.290.0110.04516.01
5.5.280.0080.02617.34
5.5.270.0070.04017.55
5.5.260.0080.03017.32
5.5.250.0050.02817.30
5.5.240.0050.03817.05
5.5.230.0100.00313.97
5.5.220.0030.01214.05
5.5.210.0110.00614.10
5.5.200.0070.01013.94
5.5.190.0140.00014.19
5.5.180.0070.01114.04
5.5.170.0080.00814.14
5.5.160.0100.00313.84
5.5.150.0030.01314.08
5.5.140.0090.00313.72
5.5.130.0040.01113.79
5.5.120.0030.01813.89
5.5.110.0110.00314.11
5.5.100.0030.00914.05
5.5.90.0030.00613.77
5.5.80.0000.01413.86
5.5.70.0050.00914.06
5.5.60.0070.01013.73
5.5.50.0040.00414.00
5.5.40.0090.00613.97
5.5.30.0090.00614.13
5.5.20.0030.00714.05
5.5.10.0030.01013.50
5.5.00.0030.01213.92
5.4.450.0300.03515.81
5.4.440.0280.03215.98
5.4.430.0100.02815.98
5.4.420.0120.02515.90
5.4.410.0080.03115.93
5.4.400.0430.00215.66
5.4.390.0530.00315.57
5.4.380.0150.03015.60
5.4.370.0190.02915.49
5.4.360.0170.03115.48
5.4.350.0230.02815.53
5.4.340.0150.03215.51
5.4.330.0090.00012.49
5.4.320.0050.02212.47
5.4.310.0060.02312.47
5.4.300.0090.01912.47
5.4.290.0040.02312.47
5.4.280.0070.02112.42
5.4.270.0080.01912.40
5.4.260.0050.02012.40
5.4.250.0070.02012.40
5.4.240.0070.01912.40
5.4.230.0070.02212.40
5.4.220.0050.02112.40
5.4.210.0060.02112.40
5.4.200.0080.02112.40
5.4.190.0050.02112.40
5.4.180.0040.02112.40
5.4.170.0080.01912.40
5.4.160.0030.02412.40
5.4.150.0040.02012.40
5.4.140.0030.02212.24
5.4.130.0060.02212.23
5.4.120.0040.02312.21
5.4.110.0050.02112.21
5.4.100.0040.01912.21
5.4.90.0040.02212.21
5.4.80.0050.02212.21
5.4.70.0050.01912.21
5.4.60.0040.02012.21
5.4.50.0070.02412.21
5.4.40.0040.02012.20
5.4.30.0040.02112.20
5.4.20.0040.02412.20
5.4.10.0060.02112.20
5.4.00.0040.02211.95
5.3.290.0050.02312.65
5.3.280.0060.02212.60
5.3.270.0050.02212.61
5.3.260.0050.02012.60
5.3.250.0010.02312.61
5.3.240.0070.01912.60
5.3.230.0060.01912.60
5.3.220.0060.02012.58
5.3.210.0070.02012.58
5.3.200.0020.02212.58
5.3.190.0050.02612.58
5.3.180.0060.02212.58
5.3.170.0050.02112.58
5.3.160.0060.02012.58
5.3.150.0060.01912.58
5.3.140.0030.02212.57
5.3.130.0020.02412.57
5.3.120.0050.02312.57
5.3.110.0030.02312.57
5.3.100.0050.02212.30
5.3.90.0080.01912.29
5.3.80.0060.01812.28
5.3.70.0020.02612.28
5.3.60.0070.02112.28
5.3.50.0050.02412.24
5.3.40.0100.01612.24
5.3.30.0040.02012.21
5.3.20.0050.02012.09
5.3.10.0050.02112.07
5.3.00.0080.01912.07
5.2.170.0050.0319.15
5.2.160.0020.0329.15
5.2.150.0050.0329.15
5.2.140.0020.0349.15
5.2.130.0050.0289.11
5.2.120.0060.0469.11
5.2.110.0030.0319.11
5.2.100.0050.0299.12
5.2.90.0030.0309.11
5.2.80.0040.0319.10
5.2.70.0070.0289.09
5.2.60.0060.0299.05
5.2.50.0020.0329.03
5.2.40.0070.0269.00
5.2.30.0030.0318.98
5.2.20.0010.0328.98
5.2.10.0040.0298.89
5.2.00.0030.0308.75
5.1.60.0050.0278.04
5.1.50.0040.0248.04
5.1.40.0040.0248.02
5.1.30.0040.0268.37
5.1.20.0040.0268.40
5.1.10.0010.0298.12
5.1.00.0000.0298.11
5.0.50.0060.0186.60
5.0.40.0080.0156.45
5.0.30.0010.0336.27
5.0.20.0030.0196.24
5.0.10.0080.0206.22
5.0.00.0050.0296.21
4.4.90.0010.0174.78
4.4.80.0030.0144.76
4.4.70.0020.0164.75
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0030.0274.71
4.4.30.0030.0154.76
4.4.20.0020.0164.85
4.4.10.0010.0174.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0144.66
4.3.90.0040.0134.63
4.3.80.0040.0274.58
4.3.70.0020.0154.63
4.3.60.0030.0184.63
4.3.50.0040.0154.63
4.3.40.0040.0264.54
4.3.30.0010.0163.28
4.3.20.0010.0173.25
4.3.10.0000.0173.22
4.3.00.0070.0236.98

preferences:
32.67 ms | 401 KiB | 5 Q