3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array('users'=>array( array( 'username'=>'testusername1', 'password'=>'testpassword1', 'firstname'=>'test', 'lastname'=>'user', 'email'=>'testusername@fakemail.com' ) )); $ch = curl_init("http://vps02.ouhk.edu.hk/~qess/webservice/rest/server.php?wstoken=f4dfb904d79777f22cafe3c7472b744c&wsfunction=core_user_create_users&moodlewsrestformat=json"); curl_setopt_array($ch,array( CURLOPT_RETURNTRANSFER => true, // return web page CURLOPT_HEADER => false, // don't return headers CURLOPT_ENCODING => "", // handle all encodings CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36", // who am i CURLOPT_AUTOREFERER => true, // set referer on redirect CURLOPT_CONNECTTIMEOUT => 120, // timeout on connect CURLOPT_TIMEOUT => 120, // timeout on response CURLOPT_MAXREDIRS => 10, // stop after 10 redirects CURLOPT_POST => true, // i am sending post data CURLOPT_POSTFIELDS => http_build_query($data), // this are my post vars CURLOPT_SSL_VERIFYHOST => 0, // don't verify ssl CURLOPT_SSL_VERIFYPEER => false, // CURLOPT_VERBOSE => 1 // )); var_dump(curl_exec($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.0120.00316.38
8.3.50.0110.00416.22
8.3.40.0070.00718.63
8.3.30.0000.01418.85
8.3.20.0040.00420.31
8.3.10.0040.00421.66
8.3.00.0050.00323.48
8.2.180.0070.01116.75
8.2.170.0120.00322.96
8.2.160.0070.00720.38
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00219.64
8.2.120.0050.00326.35
8.2.110.0090.00020.21
8.2.100.0040.00817.80
8.2.90.0000.00819.09
8.2.80.0000.00818.05
8.2.70.0030.00617.50
8.2.60.0030.00617.80
8.2.50.0120.00218.07
8.2.40.0040.00422.32
8.2.30.0040.00419.30
8.2.20.0000.00717.69
8.2.10.0040.00418.16
8.2.00.0000.00717.98
8.1.280.0180.00425.92
8.1.270.0000.00922.23
8.1.260.0040.00428.09
8.1.250.0070.00428.09
8.1.240.0040.00423.78
8.1.230.0040.00819.09
8.1.220.0000.00717.79
8.1.210.0050.00318.77
8.1.200.0000.00917.25
8.1.190.0040.00417.38
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0070.00020.83
8.1.150.0040.00418.76
8.1.140.0040.00419.53
8.1.130.0000.00717.57
8.1.120.0000.00817.38
8.1.110.0020.00517.43
8.1.100.0030.00517.38
8.1.90.0000.00717.41
8.1.80.0000.00717.43
8.1.70.0050.00217.44
8.1.60.0000.00817.48
8.1.50.0040.00417.44
8.1.40.0000.00817.54
8.1.30.0050.00317.57
8.1.20.0040.00417.62
8.1.10.0040.00417.64
8.1.00.0060.00317.57
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0030.00318.32
8.0.270.0040.00417.21
8.0.260.0070.00017.21
8.0.250.0070.00016.97
8.0.240.0040.00416.96
8.0.230.0000.00916.98
8.0.220.0030.00316.79
8.0.210.0030.00316.87
8.0.200.0060.00016.88
8.0.190.0030.00516.93
8.0.180.0000.00716.86
8.0.170.0050.00216.84
8.0.160.0030.00416.89
8.0.150.0000.00716.89
8.0.140.0070.00016.86
8.0.130.0030.00313.27
8.0.120.0000.00816.89
8.0.110.0080.00016.90
8.0.100.0050.00316.79
8.0.90.0050.00316.89
8.0.80.0040.01816.93
8.0.70.0040.00416.79
8.0.60.0000.00716.95
8.0.50.0000.00716.93
8.0.30.0100.00617.05
8.0.20.0100.00817.40
8.0.10.0040.00416.83
8.0.00.0070.01116.64
7.4.330.0050.00016.73
7.4.320.0030.00316.61
7.4.300.0000.00716.59
7.4.290.0000.00816.63
7.4.280.0030.00616.50
7.4.270.0040.00416.55
7.4.260.0070.00016.50
7.4.250.0050.00216.50
7.4.240.0020.00516.60
7.4.230.0030.00316.38
7.4.220.0090.00616.52
7.4.210.0090.00516.71
7.4.200.0000.00716.52
7.4.160.0100.00616.59
7.4.150.0110.00717.40
7.4.140.0100.00917.86
7.4.130.0120.00616.53
7.4.120.0100.00916.43
7.4.110.0100.00616.80
7.4.100.0130.01016.49
7.4.90.0090.00916.39
7.4.80.0120.01019.39
7.4.70.0080.00816.54
7.4.60.0100.01016.34
7.4.50.0060.01016.44
7.4.40.0140.00316.66
7.4.30.0150.00316.57
7.4.00.0070.01014.90
7.3.330.0090.00013.21
7.3.320.0030.00313.15
7.3.310.0000.00716.34
7.3.300.0030.00316.11
7.3.290.0000.00716.36
7.3.280.0070.01216.28
7.3.270.0100.00717.40
7.3.260.0220.00316.40
7.3.250.0090.00716.30
7.3.240.0120.00516.24
7.3.230.0090.00616.39
7.3.210.0070.01016.57
7.3.200.0150.00319.39
7.3.190.0090.00816.19
7.3.180.0100.00716.39
7.3.170.0110.00816.48
7.3.160.0080.00816.50
7.3.120.0090.00914.79
7.3.110.0110.00714.66
7.3.100.0000.00914.73
7.3.90.0030.00714.99
7.3.80.0100.00314.98
7.3.70.0050.00514.62
7.3.60.0100.00314.84
7.3.50.0120.00614.98
7.3.40.0070.00314.88
7.3.30.0070.00714.64
7.3.20.0090.00616.52
7.3.10.0040.01416.64
7.3.00.0090.00616.68
7.2.330.0040.01416.42
7.2.320.0220.00016.62
7.2.310.0060.01216.25
7.2.300.0030.01316.64
7.2.290.0080.00816.50
7.2.250.0070.01314.86
7.2.240.0170.00314.80
7.2.230.0030.01215.14
7.2.220.0030.00914.88
7.2.210.0030.01014.95
7.2.200.0060.00314.93
7.2.190.0090.00914.77
7.2.180.0000.01014.95
7.2.170.0060.00914.65
7.2.60.0110.00316.56
7.2.00.0100.00019.23
7.1.330.0090.00615.39
7.1.320.0030.00915.55
7.1.310.0090.00615.34
7.1.300.0040.00715.55
7.1.290.0060.00915.55
7.1.280.0030.00915.68
7.1.270.0070.01015.62
7.1.260.0040.01115.78
7.1.200.0100.00315.54
7.1.100.0070.00417.96
7.1.70.0090.00616.99
7.1.60.0070.01819.27
7.1.50.0040.01416.87
7.1.00.0030.07722.36
7.0.200.0070.00316.35
7.0.60.0070.04321.75
7.0.50.0230.04317.91
7.0.40.0100.07020.13
7.0.30.0400.07020.17
7.0.20.0170.06720.33
7.0.10.0170.04720.02
7.0.00.0130.08320.12
5.6.280.0070.06721.04
5.6.210.0070.08720.66
5.6.200.0030.05718.13
5.6.190.0030.05020.56
5.6.180.0330.04320.35
5.6.170.0270.06320.33
5.6.160.0130.05720.37
5.6.150.0070.03718.15
5.6.140.0100.07718.09
5.6.130.0200.06718.18
5.6.120.0070.08321.01
5.6.110.0100.08721.11
5.6.100.0030.09020.97
5.6.90.0030.05020.88
5.6.80.0070.07020.44
5.5.350.0100.04320.46
5.5.340.0030.08317.99
5.5.330.0030.04320.40
5.5.320.0630.06720.29
5.5.310.0230.06720.30
5.5.300.0030.06017.92
5.5.290.0030.04017.91
5.5.280.0200.05720.84
5.5.270.0130.06720.86
5.5.260.0100.04720.88
5.5.250.0070.08020.68
5.5.240.0230.07720.03

preferences:
52.12 ms | 400 KiB | 5 Q