3v4l.org

run code in 300+ PHP versions simultaneously
<?php print "Hi"; $ch = curl_init("http://www.google.com/"); var_dump($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.40.0100.00718.84
8.3.30.0140.00318.84
8.3.20.0040.00420.16
8.3.10.0060.00321.92
8.3.00.0040.00422.44
8.2.170.0130.00722.96
8.2.160.0120.00318.84
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00019.36
8.2.110.0090.00022.09
8.2.100.0090.00319.57
8.2.90.0050.00319.17
8.2.80.0060.00317.97
8.2.70.0030.00717.75
8.2.60.0040.00417.90
8.2.50.0040.00418.07
8.2.40.0000.00818.16
8.2.30.0040.00418.05
8.2.20.0000.00717.53
8.2.10.0000.00817.68
8.2.00.0040.00417.59
8.1.270.0040.00421.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00823.96
8.1.230.0110.00019.15
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0050.00317.28
8.1.180.0000.00818.53
8.1.170.0040.00418.55
8.1.160.0000.00721.96
8.1.150.0000.00718.51
8.1.140.0030.00517.43
8.1.130.0030.00517.68
8.1.120.0030.00417.34
8.1.110.0080.00017.30
8.1.100.0000.00817.39
8.1.90.0000.00717.25
8.1.80.0000.00717.22
8.1.70.0000.00717.35
8.1.60.0000.00817.35
8.1.50.0000.00717.35
8.1.40.0040.00417.34
8.1.30.0030.00517.50
8.1.20.0000.00917.49
8.1.10.0040.00417.47
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0040.00418.41
8.0.270.0030.00317.17
8.0.260.0070.00016.84
8.0.250.0070.00016.99
8.0.240.0040.00416.98
8.0.230.0070.00016.89
8.0.220.0000.00716.77
8.0.210.0030.00316.75
8.0.200.0040.00416.96
8.0.190.0070.00016.98
8.0.180.0040.00416.89
8.0.170.0040.00416.88
8.0.160.0000.00816.93
8.0.150.0000.00716.90
8.0.140.0050.00216.75
8.0.130.0020.00513.42
8.0.120.0050.00316.80
8.0.110.0040.00416.81
8.0.100.0040.00416.72
8.0.90.0040.00416.80
8.0.80.0100.01316.90
8.0.70.0070.00016.95
8.0.60.0000.00716.76
8.0.50.0000.00716.88
8.0.30.0150.00416.88
8.0.20.0100.01317.40
8.0.10.0000.00716.98
8.0.00.0090.01016.67
7.4.330.0000.00515.01
7.4.320.0000.00616.41
7.4.300.0030.00316.57
7.4.290.0030.00316.44
7.4.280.0030.00316.54
7.4.270.0040.00416.60
7.4.260.0000.00716.45
7.4.250.0040.00416.38
7.4.240.0040.00416.51
7.4.230.0030.00316.52
7.4.220.0080.01216.66
7.4.210.0070.01016.48
7.4.200.0000.00616.20
7.4.190.0070.00016.40
7.4.160.0030.01316.43
7.4.150.0160.00017.40
7.4.140.0080.01017.86
7.4.130.0090.00816.60
7.4.120.0110.00616.45
7.4.110.0110.00616.37
7.4.100.0100.00616.27
7.4.90.0090.00916.75
7.4.80.0130.00319.39
7.4.70.0070.01016.60
7.4.60.0030.01616.32
7.4.50.0000.00716.69
7.4.40.0060.00922.77
7.4.30.0130.00316.56
7.4.10.0090.00716.00
7.4.00.0060.00915.71
7.3.330.0030.00313.16
7.3.320.0030.00313.15
7.3.310.0030.00316.25
7.3.300.0050.00216.28
7.3.290.0140.00016.23
7.3.280.0090.00816.30
7.3.270.0080.00817.40
7.3.260.0100.01416.39
7.3.250.0120.00516.46
7.3.240.0180.00016.60
7.3.230.0030.01416.47
7.3.210.0060.01616.39
7.3.200.0070.01119.39
7.3.190.0160.00016.36
7.3.180.0030.01316.32
7.3.170.0000.01516.38
7.3.160.0120.00316.40
7.3.130.0110.00815.86
7.3.120.0060.01215.42
7.3.110.0100.00715.60
7.3.100.0080.00515.62
7.3.90.0090.00615.53
7.3.80.0060.00715.60
7.3.70.0030.00815.52
7.3.60.0020.00915.56
7.3.50.0070.00715.51
7.3.40.0070.00715.60
7.3.30.0050.00915.56
7.3.20.0060.00716.86
7.3.10.0080.00516.74
7.3.00.0060.00816.77
7.2.330.0140.00316.51
7.2.320.0090.01216.60
7.2.310.0070.01116.57
7.2.300.0030.01316.32
7.2.290.0090.00616.65
7.2.260.0090.01015.96
7.2.250.0080.00915.88
7.2.240.0040.01015.77
7.2.230.0050.00915.65
7.2.220.0040.01015.74
7.2.210.0050.00615.74
7.2.200.0080.00615.72
7.2.190.0040.00815.66
7.2.180.0060.00915.59
7.2.170.0060.00815.73
7.2.160.0060.00815.67
7.2.150.0030.01117.11
7.2.140.0060.00717.01
7.2.130.0040.01116.87
7.2.120.0060.00816.95
7.2.110.0080.00816.94
7.2.100.0060.00916.88
7.2.90.0080.00717.05
7.2.80.0070.00616.93
7.2.70.0060.00916.95
7.2.60.0070.00616.93
7.2.50.0080.00716.91
7.2.40.0040.01017.04
7.2.30.0070.00817.01
7.2.20.0070.00917.06
7.2.10.0070.00716.99
7.2.00.0050.00917.31
7.1.330.0060.00916.21
7.1.320.0040.00916.17
7.1.310.0050.00816.24
7.1.300.0070.00516.19
7.1.290.0060.00816.16
7.1.280.0020.00916.23
7.1.270.0090.00516.11
7.1.260.0060.00716.22
7.1.250.0050.00816.11
7.1.240.0030.00916.41
7.1.230.0030.00816.48
7.1.220.0070.00516.28
7.1.210.0060.00616.36
7.1.200.0070.00616.20
7.1.190.0050.01116.38
7.1.180.0060.00716.43
7.1.170.0080.00616.45
7.1.160.0060.00616.38
7.1.150.0060.00616.47
7.1.140.0060.00516.38
7.1.130.0040.00716.34
7.1.120.0040.01016.32
7.1.110.0070.00616.43
7.1.100.0040.00716.42
7.1.90.0060.00716.49
7.1.80.0060.00816.39
7.1.70.0070.00316.59
7.1.60.0030.01016.60
7.1.50.0050.00916.56
7.1.40.0060.00616.28
7.1.30.0060.00616.37
7.1.20.0050.00716.52
7.1.10.0060.00416.37
7.1.00.0060.02317.90
7.0.330.0060.00816.29
7.0.320.0050.00616.18
7.0.310.0070.00716.08
7.0.300.0050.00716.12
7.0.290.0070.00316.20
7.0.280.0050.00716.10
7.0.270.0040.00716.07
7.0.260.0040.00716.23
7.0.250.0050.00616.20
7.0.240.0060.00816.09
7.0.230.0050.00716.28
7.0.220.0060.00916.15
7.0.210.0060.00716.19
7.0.200.0040.00816.30
7.0.190.0060.00616.25
7.0.180.0080.00516.26
7.0.170.0040.00816.18
7.0.160.0070.00516.21
7.0.150.0060.00716.21
7.0.140.0040.02517.60
7.0.130.0060.00716.13
7.0.120.0040.00616.18
7.0.110.0040.00616.25
7.0.100.0050.02517.14
7.0.90.0070.02417.18
7.0.80.0060.02717.07
7.0.70.0060.02417.13
7.0.60.0050.01817.14
7.0.50.0080.02517.34
7.0.40.0030.02816.19
7.0.30.0050.02616.14
7.0.20.0090.02016.20
7.0.10.0060.02216.19
7.0.00.0020.02916.11
5.6.400.0040.00815.53
5.6.390.0050.00815.51
5.6.380.0090.00615.45
5.6.370.0070.00615.48
5.6.360.0060.00615.35
5.6.350.0030.01115.42
5.6.340.0030.01115.37
5.6.330.0040.00915.53
5.6.320.0040.00815.38
5.6.310.0060.00915.56
5.6.300.0030.00615.41
5.6.290.0050.00715.42
5.6.280.0100.02116.84
5.6.270.0040.00915.37
5.6.260.0050.00815.47
5.6.250.0080.01516.74
5.6.240.0040.01916.77
5.6.230.0080.01616.73
5.6.220.0030.02416.73
5.6.210.0100.02216.62
5.6.200.0070.02716.92
5.6.190.0090.02116.80
5.6.180.0090.02316.80
5.6.170.0070.02416.83
5.6.160.0090.02316.90
5.6.150.0070.02716.88
5.6.140.0090.02316.73
5.6.130.0040.02416.79
5.6.120.0050.02516.85
5.6.110.0070.02116.71
5.6.100.0080.01516.82
5.6.90.0070.01716.77
5.6.80.0060.02516.53
5.6.70.0090.02416.74
5.6.60.0030.02516.63
5.6.50.0050.02116.64
5.6.40.0080.02216.59
5.6.30.0070.01716.61
5.6.20.0090.02216.55
5.6.10.0060.02616.64
5.6.00.0100.02116.64
5.5.380.0050.02716.62
5.5.370.0050.02816.65
5.5.360.0070.01316.62
5.5.350.0060.02416.59
5.5.340.0070.02316.76
5.5.330.0010.02216.59
5.5.320.0070.02516.74
5.5.310.0070.02316.85
5.5.300.0040.02916.74
5.5.290.0080.02316.76
5.5.280.0080.02316.62
5.5.270.0090.01816.79
5.5.260.0080.02716.70
5.5.250.0070.02516.60
5.5.240.0050.02316.52
5.5.230.0050.02316.58
5.5.220.0010.02816.37
5.5.210.0070.02216.48
5.5.200.0080.02316.54
5.5.190.0050.01416.39
5.5.180.0070.02216.56
5.5.170.0060.00715.24
5.5.160.0060.02216.47
5.5.150.0090.02316.51
5.5.140.0040.02616.47
5.5.130.0040.02716.44
5.5.120.0070.02516.52
5.5.110.0110.02016.49
5.5.100.0070.01416.48
5.5.90.0070.02016.49
5.5.80.0100.01916.49
5.5.70.0020.02116.51
5.5.60.0070.02416.43
5.5.50.0060.02516.57
5.5.40.0080.02416.38
5.5.30.0080.02016.40
5.5.20.0070.01716.43
5.5.10.0030.02816.49
5.5.00.0070.02516.58
5.4.450.0050.01414.96
5.4.440.0060.02314.99
5.4.430.0060.02115.05
5.4.420.0060.02015.02
5.4.410.0050.02314.99
5.4.400.0060.02214.92
5.4.390.0050.02014.98
5.4.380.0050.01714.94
5.4.370.0070.01214.91
5.4.360.0060.02314.89
5.4.350.0050.02414.99
5.4.340.0060.02114.87
5.4.330.0040.00713.59
5.4.320.0060.01414.94
5.4.310.0040.02314.95
5.4.300.0060.02014.92
5.4.290.0030.02415.03
5.4.280.0090.01914.99
5.4.270.0050.02414.89
5.4.260.0050.01814.87
5.4.250.0060.01914.92
5.4.240.0100.01714.93
5.4.230.0050.02214.96
5.4.220.0060.02015.01
5.4.210.0070.02014.88
5.4.200.0040.02214.87
5.4.190.0050.02214.80
5.4.180.0030.01714.84
5.4.170.0070.02214.95
5.4.160.0070.02214.90
5.4.150.0020.02214.87
5.4.140.0080.01914.21
5.4.130.0070.01714.23
5.4.120.0030.02214.23
5.4.110.0070.02214.21
5.4.100.0030.02314.27
5.4.90.0040.01814.22
5.4.80.0020.02514.31
5.4.70.0070.02014.28
5.4.60.0060.02014.28
5.4.50.0050.02314.21
5.4.40.0070.02114.22
5.4.30.0050.01614.24
5.4.20.0030.02314.29
5.4.10.0070.02114.23
5.4.00.0050.02114.08
5.3.290.0040.01313.75
5.3.280.0050.02013.73
5.3.270.0010.01913.74
5.3.260.0020.02013.71
5.3.250.0030.02613.73
5.3.240.0010.02113.73
5.3.230.0080.01813.73
5.3.220.0060.02313.73
5.3.210.0040.02513.73
5.3.200.0060.02113.69
5.3.190.0020.02713.72
5.3.180.0050.01713.72
5.3.170.0060.01713.69
5.3.160.0050.01513.71
5.3.150.0080.01113.71
5.3.140.0060.02213.73
5.3.130.0050.02313.71
5.3.120.0040.02013.72
5.3.110.0040.02413.73
5.3.100.0020.02513.56
5.3.90.0060.02213.60
5.3.80.0020.02613.59
5.3.70.0040.02313.59
5.3.60.0060.02313.57
5.3.50.0060.02113.57
5.3.40.0030.01513.52
5.3.30.0050.01813.53
5.3.20.0020.02313.51
5.3.10.0070.01713.50
5.3.00.0050.02113.48
5.2.170.0030.05011.63
5.2.160.0030.03011.63
5.2.150.0100.05711.63
5.2.140.0030.06311.63
5.2.130.0030.05711.63
5.2.120.0030.06311.63
5.2.110.0070.06011.63
5.2.100.0030.05711.63
5.2.90.0070.05711.63
5.2.80.0000.04711.63
5.2.70.0070.05011.63
5.2.60.0130.05311.63
5.2.50.0030.06311.63
5.2.40.0070.06011.63
5.2.30.0100.05711.63
5.2.20.0030.06311.63
5.2.10.0030.03311.63
5.2.00.0100.05711.63
5.1.60.0030.04311.63
5.1.50.0100.04011.63
5.1.40.0030.05311.63
5.1.30.0000.04011.63
5.1.20.0000.06011.63
5.1.10.0030.03011.63
5.1.00.0000.05311.63
5.0.50.0000.04311.63
5.0.40.0070.03711.63
5.0.30.0030.06011.63
5.0.20.0000.03011.63
5.0.10.0030.03311.63
5.0.00.0000.06311.63
4.4.90.0030.03311.63
4.4.80.0000.03711.63
4.4.70.0030.03711.63
4.4.60.0070.03011.63
4.4.50.0000.04011.63
4.4.40.0000.04711.63
4.4.30.0030.01711.63
4.4.20.0000.02011.63
4.4.10.0000.03311.63
4.4.00.0030.04711.63
4.3.110.0000.03711.63
4.3.100.0000.03311.63
4.3.90.0030.01711.63
4.3.80.0000.02711.63
4.3.70.0000.03011.63
4.3.60.0070.03711.63
4.3.50.0000.02011.63
4.3.40.0000.04311.63
4.3.30.0000.03711.63
4.3.20.0030.03711.63
4.3.10.0000.03311.63
4.3.00.0070.03311.63

preferences:
43.98 ms | 400 KiB | 5 Q