3v4l.org

run code in 300+ PHP versions simultaneously
<?php function CallAPI($method, $url, $data = false) { $curl = curl_init(); switch ($method) { case "POST": curl_setopt($curl, CURLOPT_POST, 1); if ($data) curl_setopt($curl, CURLOPT_POSTFIELDS, $data); break; case "PUT": curl_setopt($curl, CURLOPT_PUT, 1); break; default: if ($data) $url = sprintf("%s?%s", $url, http_build_query($data)); } // Optional Authentication: curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl, CURLOPT_USERPWD, "username:password"); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); return curl_exec($curl); } ?>

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.0030.01318.18
8.3.50.0090.01221.14
8.3.40.0060.00918.54
8.3.30.0140.00320.20
8.3.20.0080.00020.33
8.3.10.0040.00422.04
8.3.00.0000.00822.44
8.2.180.0110.00416.75
8.2.170.0100.01022.96
8.2.160.0100.00322.29
8.2.150.0090.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.66
8.2.110.0080.00021.00
8.2.100.0000.01117.59
8.2.90.0080.00019.00
8.2.80.0050.00319.34
8.2.70.0030.00517.38
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0000.00917.96
8.2.30.0070.00019.54
8.2.20.0000.00817.44
8.2.10.0040.00417.49
8.2.00.0000.00717.50
8.1.280.0110.00625.92
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0000.00917.64
8.1.230.0040.00718.86
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.10
8.1.190.0030.00517.18
8.1.180.0030.00618.10
8.1.170.0060.00318.65
8.1.160.0070.00018.63
8.1.150.0040.00418.60
8.1.140.0070.00017.23
8.1.130.0040.00417.80
8.1.120.0000.00717.25
8.1.110.0050.00317.35
8.1.100.0070.00017.34
8.1.90.0000.00717.27
8.1.80.0000.00817.25
8.1.70.0000.00717.34
8.1.60.0030.00517.39
8.1.50.0040.00417.41
8.1.40.0070.00017.43
8.1.30.0040.00417.52
8.1.20.0060.00317.55
8.1.10.0030.00517.46
8.1.00.0050.00317.36
8.0.300.0110.00018.77
8.0.290.0040.00417.05
8.0.280.0030.00318.40
8.0.270.0030.00317.07
8.0.260.0030.00616.67
8.0.250.0000.00616.73
8.0.240.0040.00416.72
8.0.230.0030.00316.86
8.0.220.0000.00716.79
8.0.210.0000.00716.76
8.0.200.0000.00616.87
8.0.190.0000.00816.77
8.0.180.0000.00716.77
8.0.170.0050.00316.72
8.0.160.0000.00716.82
8.0.150.0040.00416.70
8.0.140.0040.00416.71
8.0.130.0000.00513.23
8.0.120.0040.00416.69
8.0.110.0000.00916.63
8.0.100.0000.00716.68
8.0.90.0070.00016.59
8.0.80.0090.00616.69
8.0.70.0050.00216.74
8.0.60.0050.00316.74
8.0.50.0050.00316.83
8.0.30.0110.00917.08
8.0.20.0090.01017.40
8.0.10.0030.00616.84
8.0.00.0070.01516.60
7.4.330.0050.00014.91
7.4.320.0030.00316.56
7.4.300.0030.00316.50
7.4.290.0030.00516.40
7.4.280.0040.00416.42
7.4.270.0070.00016.42
7.4.260.0000.00513.10
7.4.250.0040.00416.36
7.4.240.0020.00616.50
7.4.230.0000.00716.50
7.4.220.0100.01016.54
7.4.210.0100.00816.50
7.4.200.0050.00216.30
7.4.190.0030.00316.31
7.4.160.0000.01616.17
7.4.150.0070.01117.40
7.4.140.0080.01317.86
7.4.130.0120.00516.36
7.4.120.0090.00816.41
7.4.110.0100.01016.46
7.4.100.0120.00916.42
7.4.90.0140.00316.35
7.4.80.0090.00919.39
7.4.70.0040.01716.46
7.4.60.0050.01116.50
7.4.50.0050.00316.50
7.4.40.0040.01122.77
7.4.30.0080.01116.54
7.4.00.0060.00914.84
7.3.330.0050.00013.03
7.3.320.0000.00513.17
7.3.310.0000.00716.09
7.3.300.0000.00716.15
7.3.290.0090.00616.16
7.3.280.0070.00916.19
7.3.270.0060.01017.40
7.3.260.0120.00916.42
7.3.250.0080.01216.30
7.3.240.0060.01616.13
7.3.230.0040.01216.39
7.3.210.0100.00716.40
7.3.200.0060.01219.39
7.3.190.0150.00316.30
7.3.180.0100.00716.39
7.3.170.0080.01216.42
7.3.160.0080.00816.21
7.3.120.0060.00914.48
7.3.00.0080.00416.07
7.2.330.0100.00716.65
7.2.320.0040.01516.46
7.2.310.0060.01116.13
7.2.300.0100.00616.53
7.2.290.0090.00916.36
7.2.130.0000.00816.69
7.2.120.0070.00316.60
7.2.110.0030.01016.30
7.2.100.0040.01116.59
7.2.90.0000.00916.59
7.2.80.0080.00816.47
7.2.70.0030.01316.81
7.2.60.0090.00916.61
7.2.50.0150.00316.74
7.2.40.0040.00816.68
7.2.30.0060.00616.45
7.2.20.0090.00316.54
7.2.10.0060.00616.70
7.2.00.0030.01216.69
7.1.250.0030.00715.58
7.1.240.0040.01115.35
7.1.230.0070.00715.46
7.1.220.0080.00415.50
7.1.210.0070.00715.50
7.1.200.0080.00415.43
7.1.190.0110.00915.51
7.1.180.0160.00315.27
7.1.170.0110.00715.72
7.1.160.0030.00915.52
7.1.150.0060.00615.66
7.1.140.0030.01015.61
7.1.130.0030.01015.48
7.1.120.0170.00015.51
7.1.110.0040.00415.66
7.1.100.0040.01115.74
7.1.90.0070.00415.63
7.1.80.0000.01415.32
7.1.70.0030.00616.26
7.1.60.0080.00617.39
7.1.50.0080.01116.08
7.1.40.0070.00415.54
7.1.30.0040.00715.49
7.1.20.0080.00815.70
7.1.10.0030.00715.33
7.1.00.0030.03718.94
7.0.330.0140.00015.39
7.0.320.0030.00715.14
7.0.310.0100.00315.10
7.0.300.0060.01214.91
7.0.290.0040.00415.13
7.0.280.0040.00715.19
7.0.270.0130.00315.26
7.0.260.0030.01015.20
7.0.250.0000.01115.20
7.0.240.0090.00614.95
7.0.230.0040.01115.18
7.0.220.0070.01015.18
7.0.210.0070.00315.17
7.0.200.0030.00715.96
7.0.190.0040.00415.26
7.0.180.0060.00615.16
7.0.170.0070.00315.06
7.0.160.0000.01015.27
7.0.150.0030.00614.96
7.0.140.0000.04118.74
7.0.130.0030.00615.21
7.0.120.0160.00015.05
7.0.110.0040.00815.37
7.0.100.0070.02217.58
7.0.90.0020.02817.45
7.0.80.0070.02017.60
7.0.70.0050.02317.71
7.0.60.0000.02317.51
7.0.50.0100.02717.72
7.0.40.0030.04016.73
7.0.30.0030.04716.70
7.0.20.0090.04316.77
7.0.10.0080.03516.71
7.0.00.0080.02716.64
5.6.380.0030.00613.80
5.6.370.0150.00014.21
5.6.360.0060.00914.00
5.6.350.0030.00614.33
5.6.340.0030.00614.26
5.6.330.0070.00714.09
5.6.320.0050.00514.19
5.6.310.0030.01014.29
5.6.300.0030.01014.20
5.6.290.0030.01013.87
5.6.280.0060.00313.96
5.6.270.0120.00014.12
5.6.260.0070.00614.04
5.6.250.0020.03317.35
5.6.240.0050.02317.33
5.6.230.0040.02417.26
5.6.220.0050.02017.41
5.6.210.0030.02117.35
5.6.200.0050.02617.65
5.6.190.0020.02717.59
5.6.180.0070.04217.61
5.6.170.0100.01817.46
5.6.160.0060.04517.33
5.6.150.0100.04217.43
5.6.140.0040.02817.43
5.6.130.0130.03517.63
5.6.120.0050.04617.48
5.6.110.0090.03917.63
5.6.100.0090.02817.62
5.6.90.0080.04017.68
5.6.80.0010.02417.23
5.6.70.0010.03217.24
5.6.60.0030.04517.20
5.6.50.0100.03917.22
5.6.40.0070.02417.14
5.6.30.0080.02317.06
5.6.20.0070.04417.14
5.6.10.0050.02517.27
5.6.00.0050.04917.22
5.5.380.0050.02015.77
5.5.370.0020.02315.82
5.5.360.0030.02315.79
5.5.350.0020.02715.81
5.5.340.0000.03015.96
5.5.330.0030.02515.97
5.5.320.0060.04116.05
5.5.310.0050.03215.98
5.5.300.0030.05016.06
5.5.290.0070.02316.02
5.5.280.0050.04615.91
5.5.270.0080.02115.97
5.5.260.0090.03216.00
5.5.250.0050.04415.93
5.5.240.0020.03715.73
5.5.230.0060.04315.66
5.5.220.0080.02115.69
5.5.210.0110.03515.69
5.5.200.0080.04015.66
5.5.190.0070.04015.68
5.5.180.0080.03615.59
5.5.170.0030.00511.18
5.5.160.0080.02815.59
5.5.150.0050.03715.69
5.5.140.0040.04015.71
5.5.130.0030.03815.70
5.5.120.0030.02615.72
5.5.110.0070.03715.68
5.5.100.0080.01815.63
5.5.90.0130.03515.63
5.5.80.0000.03915.67
5.5.70.0030.02215.58
5.5.60.0080.04015.67
5.5.50.0100.01815.65
5.5.40.0030.02715.63
5.5.30.0080.01815.61
5.5.20.0000.03815.67
5.5.10.0050.03515.62
5.5.00.0050.03215.63
5.4.450.0060.03315.31
5.4.440.0070.02315.22
5.4.430.0070.03815.32
5.4.420.0100.03015.32
5.4.410.0030.03615.27
5.4.400.0020.04415.06
5.4.390.0070.02515.13
5.4.380.0020.04515.16
5.4.370.0030.04215.03
5.4.360.0100.03515.11
5.4.350.0080.03115.19
5.4.340.0120.03515.10
5.4.330.0050.00211.18
5.4.320.0070.01715.18
5.4.310.0050.02915.06
5.4.300.0070.03515.20
5.4.290.0010.02115.03
5.4.280.0030.02715.14
5.4.270.0030.03615.18
5.4.260.0050.02215.06
5.4.250.0030.04215.10
5.4.240.0070.02015.02
5.4.230.0070.03915.09
5.4.220.0050.04315.14
5.4.210.0050.04315.16
5.4.200.0030.03015.18
5.4.190.0070.01815.11
5.4.180.0050.02015.02
5.4.170.0050.04015.20
5.4.160.0070.03815.01
5.4.150.0000.02615.14
5.4.140.0080.03013.80
5.4.130.0050.03113.80
5.4.120.0040.03813.83
5.4.110.0050.03613.78
5.4.100.0080.01913.81
5.4.90.0070.03513.77
5.4.80.0030.04213.79
5.4.70.0050.03113.74
5.4.60.0050.02913.80
5.4.50.0050.04113.77
5.4.40.0050.03913.85
5.4.30.0030.02113.74
5.4.20.0070.03713.82
5.4.10.0120.03013.79
5.4.00.0100.03713.54
5.3.290.0050.02212.99
5.3.280.0050.04012.93
5.3.270.0050.04212.86
5.3.260.0000.02912.93
5.3.250.0040.02112.86
5.3.240.0020.04112.94
5.3.230.0060.02012.84
5.3.220.0040.04212.91
5.3.210.0030.02312.89
5.3.200.0060.04012.93
5.3.190.0010.03412.87
5.3.180.0070.04112.87
5.3.170.0030.03212.90
5.3.160.0050.03512.94
5.3.150.0050.04012.95
5.3.140.0030.03412.83
5.3.130.0050.03512.90
5.3.120.0020.04212.83
5.3.110.0030.04012.92
5.3.100.0090.03112.68
5.3.90.0100.02312.57
5.3.80.0030.03512.60
5.3.70.0030.03112.59
5.3.60.0100.02312.62
5.3.50.0050.02712.57
5.3.40.0070.04012.53
5.3.30.0000.02612.55
5.3.20.0050.02412.45
5.3.10.0030.03412.45
5.3.00.0050.03712.40
5.2.170.0030.02111.10
5.2.160.0020.03511.23
5.2.150.0020.02611.17
5.2.140.0040.02011.12
5.2.130.0060.02811.17
5.2.120.0030.03311.10
5.2.110.0030.01811.20
5.2.100.0030.02311.20
5.2.90.0050.03111.09
5.2.80.0030.02911.10
5.2.70.0050.02511.16
5.2.60.0050.01811.13
5.2.50.0060.02511.10
5.2.40.0040.03111.12
5.2.30.0000.03511.15
5.2.20.0030.02011.07
5.2.10.0030.03010.98
5.2.00.0030.03610.96
5.1.60.0030.03010.59
5.1.50.0060.02710.51
5.1.40.0070.02510.61
5.1.30.0060.02610.79
5.1.20.0070.03010.70
5.1.10.0050.02310.62
5.1.00.0050.03010.57
5.0.50.0050.02210.43
5.0.40.0050.01210.43
5.0.30.0020.01710.43
5.0.20.0070.01310.43
5.0.10.0030.01210.43
5.0.00.0020.03010.43
4.4.90.0030.01010.43
4.4.80.0020.01710.43
4.4.70.0000.01910.43
4.4.60.0020.01210.43
4.4.50.0000.01910.43
4.4.40.0040.03110.43
4.4.30.0000.01510.43
4.4.20.0030.02010.43
4.4.10.0030.01710.43
4.4.00.0060.02410.43
4.3.110.0020.00810.43
4.3.100.0000.02010.43
4.3.90.0040.01310.43
4.3.80.0040.02010.43
4.3.70.0030.01810.43
4.3.60.0030.01810.43
4.3.50.0020.01210.43
4.3.40.0000.01410.43
4.3.30.0050.01210.43
4.3.20.0010.01310.43
4.3.10.0040.01010.43
4.3.00.0060.01310.43

preferences:
34.72 ms | 401 KiB | 5 Q