3v4l.org

run code in 300+ PHP versions simultaneously
<?php $baseURI = 'https://api.twitter.com/1.1/search/tweets.json'; $method = 'GET'; $params = array('key1'=>'val1', 'key2'=>'val2'); print_r(process($baseURI, $method, $params)); function process($baseURI, $method, $params ){ $return = array(); ksort($params); foreach($params as $key => $value) { $return[] = rawurlencode($key) . '=' . rawurlencode($value); } print_r("hello");exit; return $method . "&" . rawurlencode($baseURI) . '&' . rawurlencode(implode('&', $return)); }

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.01118.55
8.3.50.0170.00016.74
8.3.40.0000.01418.80
8.3.30.0030.01418.71
8.3.20.0040.00421.77
8.3.10.0040.00421.73
8.3.00.0030.00519.69
8.2.180.0070.01016.63
8.2.170.0180.00422.96
8.2.160.0110.00419.29
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00422.16
8.2.120.0040.00426.35
8.2.110.0090.00022.24
8.2.100.0030.00917.84
8.2.90.0000.00819.23
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00818.03
8.2.50.0000.00818.13
8.2.40.0060.00320.55
8.2.30.0080.00019.27
8.2.20.0040.00418.09
8.2.10.0000.00718.24
8.2.00.0050.00218.20
8.1.280.0100.01025.92
8.1.270.0040.00423.92
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0000.01023.98
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0080.00018.50
8.1.160.0000.00718.96
8.1.150.0000.00718.91
8.1.140.0040.00419.52
8.1.130.0000.00718.79
8.1.120.0000.00817.53
8.1.110.0050.00317.53
8.1.100.0050.00217.46
8.1.90.0000.00717.48
8.1.80.0000.00817.42
8.1.70.0030.00317.47
8.1.60.0000.00817.49
8.1.50.0040.00417.54
8.1.40.0000.01017.58
8.1.30.0080.00017.64
8.1.20.0040.00417.68
8.1.10.0040.00417.58
8.1.00.0000.00817.32
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.43
8.0.270.0000.00717.24
8.0.260.0030.00319.02
8.0.250.0050.00216.95
8.0.240.0090.00017.10
8.0.230.0000.00817.02
8.0.220.0070.00016.88
8.0.210.0000.00716.87
8.0.200.0030.00317.03
8.0.190.0030.00616.91
8.0.180.0000.00717.00
8.0.170.0040.00416.94
8.0.160.0040.00417.02
8.0.150.0070.00016.88
8.0.140.0070.00016.93
8.0.130.0030.00313.40
8.0.120.0080.00016.95
8.0.110.0030.00316.84
8.0.100.0070.00017.00
8.0.90.0040.00416.95
8.0.80.0070.01016.86
8.0.70.0050.00316.85
8.0.60.0000.00716.89
8.0.50.0000.00816.93
8.0.30.0110.00917.21
8.0.20.0090.01217.40
8.0.10.0050.00217.11
8.0.00.0090.00916.93
7.4.330.0000.00515.55
7.4.320.0050.00316.54
7.4.300.0060.00016.61
7.4.290.0040.00416.53
7.4.280.0070.00016.52
7.4.270.0040.00416.60
7.4.260.0030.00316.50
7.4.250.0030.00316.38
7.4.240.0040.00416.53
7.4.230.0000.00716.71
7.4.220.0110.00716.67
7.4.210.0110.00316.42
7.4.200.0030.00316.60
7.4.160.0130.00316.67
7.4.150.0120.00617.40
7.4.140.0120.01117.86
7.4.130.0150.00316.57
7.4.120.0070.01316.49
7.4.110.0090.00916.56
7.4.100.0130.01016.74
7.4.90.0090.00916.56
7.4.80.0100.00719.39
7.4.70.0030.01316.60
7.4.60.0060.01016.50
7.4.50.0920.00616.41
7.4.40.0130.00916.37
7.4.30.0000.01716.39
7.4.00.0080.01015.01
7.3.330.0000.00513.34
7.3.320.0050.00013.39
7.3.310.0070.00016.44
7.3.300.0030.00316.32
7.3.290.0060.01316.36
7.3.280.0120.00416.40
7.3.270.0070.01117.40
7.3.260.0080.00816.38
7.3.250.0150.00816.52
7.3.240.0100.00816.55
7.3.230.0130.00316.50
7.3.210.0030.01416.50
7.3.200.0060.01216.36
7.3.190.0130.00316.46
7.3.180.0050.01116.68
7.3.170.0060.01516.57
7.3.160.0090.01216.52
7.3.120.0070.01114.95
7.3.110.0030.00915.09
7.3.100.0030.01215.00
7.3.90.0090.00314.91
7.3.80.0120.00314.78
7.3.70.0000.00914.75
7.3.60.0070.00714.95
7.3.50.0110.00314.70
7.3.40.0060.01014.80
7.3.30.0110.00714.88
7.3.20.0100.00316.59
7.3.10.0060.00916.60
7.3.00.0050.00816.64
7.2.330.0140.00316.70
7.2.320.0180.00416.42
7.2.310.0080.00816.45
7.2.300.0060.01116.75
7.2.290.0000.01516.45
7.2.250.0100.01015.22
7.2.240.0090.00915.14
7.2.230.0090.00314.96
7.2.220.0030.00914.96
7.2.210.0140.00015.14
7.2.200.0050.00515.02
7.2.190.0110.00715.07
7.2.180.0040.01215.10
7.2.170.0030.01215.19
7.2.130.0080.00417.07
7.2.120.0040.01116.97
7.2.110.0000.01016.96
7.2.100.0040.00716.91
7.2.90.0100.00316.93
7.2.80.0040.01116.65
7.2.70.0060.00616.98
7.2.60.0130.00316.90
7.2.50.0070.00716.93
7.2.40.0000.01017.02
7.2.30.0080.01217.06
7.2.20.0040.01416.75
7.2.10.0030.00916.76
7.2.00.0040.00816.84
7.1.330.0090.00615.73
7.1.320.0060.00615.95
7.1.310.0110.00015.73
7.1.300.0100.00715.74
7.1.290.0120.00315.77
7.1.280.0040.01215.73
7.1.270.0110.00415.68
7.1.260.0030.01315.90
7.1.250.0050.00715.89
7.1.200.0040.01115.50
7.1.70.0140.00417.27
7.1.60.0000.01017.20
7.1.50.0500.01732.82
7.1.40.0330.01732.61
7.1.30.0430.01732.47
7.1.20.0370.01332.73
7.1.10.0170.01014.56
7.1.00.0230.01314.75
7.0.200.0120.01216.84
7.0.190.0300.01714.63
7.0.180.0230.01014.40
7.0.170.0330.01014.43
7.0.160.0300.01314.41
7.0.150.0230.01014.18
7.0.140.0200.01714.46
7.0.130.0270.00714.40
7.0.120.0300.00714.57
7.0.110.0200.01014.39
7.0.100.0200.01314.38
7.0.90.0330.00714.43
7.0.80.0200.01014.43
7.0.70.1430.01014.20
7.0.60.0230.00714.06
7.0.50.0200.01014.43
7.0.40.0270.00714.51
7.0.30.0230.00714.63
7.0.20.0200.01314.56
7.0.10.0200.01014.70
7.0.00.0300.00714.55

preferences:
71.43 ms | 401 KiB | 5 Q