3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); $fields = array( 'format'=>'json', 'api_key'=>'113dd81fd2114fe8b9bfd0df5ed1c7e7', 'api_secret'=>'d114f87b30cf4a528fbdb6c4e88356ca5ffe3b38da57498d886739db04103a4e' ); $postvars = ''; foreach($fields as $key=>$value) { $postvars .= $key . "=" . $value . "&"; } $url = "https://castlesports.revelup.com/inventoryx/api/inventory/Product/"; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_POST, 1); //0 for a get request curl_setopt($ch,CURLOPT_POSTFIELDS,$postvars); curl_setopt($ch,CURLOPT_RETURNTRANSFER, true); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT ,3); curl_setopt($ch,CURLOPT_TIMEOUT, 20); $response = curl_exec($ch); print "curl response is:" . $response; curl_close ($ch); ?>

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.0070.01116.36
8.3.50.0150.00322.12
8.3.40.0140.00018.96
8.3.30.0060.00918.85
8.3.20.0070.00020.39
8.3.10.0080.00023.67
8.3.00.0050.00319.85
8.2.180.0150.00716.75
8.2.170.0120.00322.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00020.94
8.2.120.0100.00026.35
8.2.110.0000.00822.25
8.2.100.0080.00417.78
8.2.90.0040.00419.05
8.2.80.0030.00617.97
8.2.70.0000.00817.50
8.2.60.0080.00017.80
8.2.50.0050.00318.07
8.2.40.0040.00421.11
8.2.30.0050.00220.52
8.2.20.0050.00317.77
8.2.10.0040.00417.96
8.2.00.0040.00417.89
8.1.280.0180.00025.92
8.1.270.0060.00318.82
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0180.00323.84
8.1.230.0040.00722.13
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0080.00017.23
8.1.180.0060.00318.10
8.1.170.0000.00818.61
8.1.160.0030.00520.54
8.1.150.0080.00018.71
8.1.140.0000.00819.46
8.1.130.0030.00317.63
8.1.120.0040.00417.35
8.1.110.0000.00717.36
8.1.100.0040.00417.42
8.1.90.0040.00417.29
8.1.80.0070.00017.38
8.1.70.0070.00017.33
8.1.60.0080.00017.48
8.1.50.0030.00617.52
8.1.40.0040.00417.43
8.1.30.0040.00417.51
8.1.20.0040.00417.59
8.1.10.0080.00017.43
8.1.00.0000.00717.38
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0030.00318.28
8.0.270.0040.00417.17
8.0.260.0080.00017.11
8.0.250.0030.00316.95
8.0.240.0030.00316.89
8.0.230.0040.00417.00
8.0.220.0040.00416.81
8.0.210.0030.00316.82
8.0.200.0000.00717.00
8.0.190.0030.00517.02
8.0.180.0040.00416.94
8.0.170.0060.00316.98
8.0.160.0000.00816.93
8.0.150.0030.00516.95
8.0.140.0040.00416.85
8.0.130.0000.00513.36
8.0.120.0000.00816.87
8.0.110.0040.00416.81
8.0.100.0030.00316.89
8.0.90.0060.00316.96
8.0.80.0090.00616.89
8.0.70.0050.00316.87
8.0.60.0050.00216.92
8.0.50.0040.00416.80
8.0.30.0090.00916.98
8.0.20.0100.00917.40
8.0.10.0100.00016.99
8.0.00.0110.00816.73
7.4.330.0000.00516.66
7.4.320.0070.00016.40
7.4.300.0060.00016.51
7.4.290.0030.00316.55
7.4.280.0040.00416.56
7.4.270.0000.00716.49
7.4.260.0000.00716.46
7.4.250.0040.00416.38
7.4.240.0050.00216.59
7.4.230.0000.00716.54
7.4.220.0120.00316.50
7.4.210.0100.00516.44
7.4.200.0040.00416.65
7.4.160.0060.00916.29
7.4.150.0110.00617.40
7.4.140.0130.00617.86
7.4.130.0150.00616.46
7.4.120.0080.01016.42
7.4.110.0090.01216.46
7.4.100.0090.01516.48
7.4.90.0090.00916.50
7.4.80.0160.00519.39
7.4.70.0050.01116.37
7.4.60.0140.00316.36
7.4.50.0040.01116.40
7.4.40.0130.00416.39
7.4.30.0030.01916.45
7.4.00.0020.01314.77
7.3.330.0000.00613.14
7.3.320.0030.00313.13
7.3.310.0000.00716.13
7.3.300.0070.00016.27
7.3.290.0000.00616.33
7.3.280.0110.00616.31
7.3.270.0060.01217.40
7.3.260.0130.00316.33
7.3.250.0130.00516.22
7.3.240.0080.01016.32
7.3.230.0060.01016.39
7.3.210.0130.00316.22
7.3.200.0110.00516.38
7.3.190.0060.00916.56
7.3.180.0100.00616.36
7.3.170.0090.01216.33
7.3.160.0060.01116.40
7.3.120.0050.01114.87
7.3.110.0060.00914.63
7.3.100.0040.01214.84
7.3.90.0020.01214.71
7.3.80.0060.01014.77
7.3.70.0060.00514.80
7.3.60.0050.01014.80
7.3.50.0030.00914.74
7.3.40.0070.00614.83
7.3.30.0050.00814.76
7.3.20.0060.00716.65
7.3.10.0060.00916.62
7.3.00.0080.00516.67
7.2.330.0090.00916.59
7.2.320.0110.00716.60
7.2.310.0070.01416.60
7.2.300.0120.00816.32
7.2.290.0100.01016.67
7.2.250.0070.01114.92
7.2.240.0040.01014.90
7.2.230.0030.01114.96
7.2.220.0060.00714.88
7.2.210.0050.00814.77
7.2.200.0040.01014.87
7.2.190.0090.00614.85
7.2.180.0050.00815.01
7.2.170.0030.01014.89
7.2.160.0060.00814.86
7.2.150.0080.00516.61
7.2.140.0040.00916.67
7.2.130.0050.00916.86
7.2.120.0070.00816.68
7.2.110.0060.00616.65
7.2.100.0030.01116.54
7.2.90.0030.01216.73
7.2.80.0090.00916.74
7.2.70.0080.00816.71
7.2.60.0080.00716.72
7.2.50.0060.00816.75
7.2.40.0060.00716.65
7.2.30.0060.00616.81
7.2.20.0060.00816.71
7.2.10.0090.00616.60
7.2.00.0050.00817.42
7.1.330.0110.00415.67
7.1.320.0040.01115.72
7.1.310.0040.00715.69
7.1.300.0080.00515.68
7.1.290.0020.01015.62
7.1.280.0060.00615.59
7.1.270.0030.01215.60
7.1.260.0020.01015.65
7.1.250.0050.00815.59
7.1.240.0070.00715.77
7.1.230.0030.01015.68
7.1.220.0040.00415.29
7.1.210.0140.00715.76
7.1.200.0060.00615.55
7.1.190.0000.01415.61
7.1.180.0000.00915.53
7.1.170.0000.01115.39
7.1.160.0000.01215.50
7.1.150.0090.00015.36
7.1.140.0040.01115.53
7.1.130.0070.00315.55
7.1.120.0060.00615.56
7.1.110.0040.00715.64
7.1.100.0020.00916.81
7.1.90.0090.00615.65
7.1.80.0070.00415.64
7.1.70.0070.00816.30
7.1.60.0090.00917.41
7.1.50.0030.01216.24
7.1.40.0070.00715.50
7.1.30.0050.00515.66
7.1.20.0080.00015.55
7.1.10.0060.00615.51
7.1.00.0100.03519.05
7.0.330.0040.00414.96
7.0.320.0050.00315.30
7.0.310.0070.00715.07
7.0.300.0030.01015.38
7.0.290.0070.00715.17
7.0.280.0030.00915.44
7.0.270.0070.00415.42
7.0.260.0080.00015.29
7.0.250.0060.00315.11
7.0.240.0060.00615.23
7.0.230.0080.00515.21
7.0.220.0000.01015.20
7.0.210.0060.00615.02
7.0.200.0050.00815.90
7.0.190.0030.01015.01
7.0.180.0060.00615.38
7.0.170.0050.00315.30
7.0.160.0060.00315.36
7.0.150.0060.00615.17
7.0.140.0110.00615.26
7.0.130.0040.00815.17
7.0.120.0030.01015.46
7.0.110.0040.00815.22
7.0.100.0000.01515.33
7.0.90.0040.01115.34
7.0.80.0030.00915.44
7.0.70.0030.01015.39
7.0.60.0100.02217.46
7.0.50.0050.02316.62
7.0.40.0080.04616.67
7.0.30.0230.04016.72
7.0.20.0140.04616.74
7.0.10.0050.04416.66
7.0.00.0100.04116.74
5.6.400.0060.00914.20
5.6.390.0030.00614.37
5.6.380.0080.00814.41
5.6.370.0110.00013.93
5.6.360.0060.01013.65
5.6.350.0090.00314.24
5.6.340.0030.00613.93
5.6.330.0030.00914.49
5.6.320.0000.01014.30
5.6.310.0030.00913.93
5.6.300.0120.00614.13
5.6.290.0070.01013.94
5.6.280.0050.02217.75
5.6.270.0000.01014.09
5.6.260.0030.01014.04
5.6.250.0060.00914.14
5.6.240.0040.01114.41
5.6.230.0040.00414.36
5.6.220.0000.00914.21
5.6.210.0080.04017.30
5.6.200.0030.04216.14
5.6.190.0050.04617.36
5.6.180.0300.03817.16
5.6.170.0230.03917.50
5.6.160.0050.02417.29
5.6.150.0050.04716.07
5.6.140.0090.04316.25
5.6.130.0070.02416.17
5.6.120.0030.04617.67
5.6.110.0000.05117.50
5.6.100.0060.04317.53
5.6.90.0050.03917.59
5.6.80.0050.02317.06
5.6.70.0070.00414.04
5.6.60.0070.00813.82
5.6.50.0030.00914.16
5.6.40.0080.00413.84
5.6.30.0030.00614.23
5.6.20.0060.00314.18
5.6.10.0000.00813.76
5.6.00.0060.00913.85
5.5.380.0030.01313.99
5.5.370.0030.00714.25
5.5.360.0030.01213.77
5.5.350.0030.04617.16
5.5.340.0090.04216.06
5.5.330.0070.02617.27
5.5.320.0200.03917.22
5.5.310.0130.04317.02
5.5.300.0130.04015.99
5.5.290.0030.02316.03
5.5.280.0080.04217.29
5.5.270.0060.04517.57
5.5.260.0050.04817.46
5.5.250.0030.02617.16
5.5.240.0100.03717.16
5.5.230.0070.00714.29
5.5.220.0070.00314.13
5.5.210.0090.00313.72
5.5.200.0040.01113.69
5.5.190.0130.00313.93
5.5.180.0050.00513.83
5.5.170.0030.00914.10
5.5.160.0060.00613.87
5.5.150.0100.00313.99
5.5.140.0090.00413.80
5.5.130.0040.01113.95
5.5.120.0030.00513.95
5.5.110.0070.00713.89
5.5.100.0000.01514.06
5.5.90.0040.01114.12
5.5.80.0000.01114.09
5.5.70.0080.00413.95
5.5.60.0080.00814.01
5.5.50.0050.00514.11
5.5.40.0100.00313.87
5.5.30.0040.00813.84
5.5.20.0080.00013.77
5.5.10.0030.01014.23
5.5.00.0070.00713.73

preferences:
55.11 ms | 401 KiB | 5 Q