3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! class ICObenchAPI { private $privateKey = '196c979a-e3a5-40cc-8bf8-55edbb4af14b'; private $publicKey = '570d742e-21c0-4a8b-9f13-fbc30f00b804'; private $apiUrl = 'https://icobench.com/api/v1/'; public $result; public function getICOs($type = 'all', $data = ''){ return $this->send('icos/' . $type, $data); } public function getICO($icoId, $data = ''){ return $this->send('ico/' . $icoId, $data); } public function getOther($type){ return $this->send('other/' . $type, ''); } private function send($action, $data){ $dataJson = json_encode($data); echo $sig = base64_encode(hash_hmac('sha384', $dataJson, $this->privateKey, true)); echo '*'; echo strlen($dataJson); echo '*'; echo $this->publicKey; echo '*'; echo $sig; echo '*'; echo $dataJson; $ch = curl_init($this->apiUrl . $action); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $dataJson); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen($dataJson), 'X-ICObench-Key: ' . $this->publicKey, 'X-ICObench-Sig: ' . $sig) ); $reply = curl_exec($ch); $ff = $reply; $reply = json_decode($reply,true); if(isset($reply['error'])){ $this->result = $reply['error']; return false; }else if(isset($reply['message'])){ $this->result = $reply['message']; return true; }else if(isset($reply)){ $this->result = json_encode($reply); return true; }else{ $this->result = htmlspecialchars($ff); return false; } } public function result(){ return $this->result; } } $api = new ICObenchAPI(); $api->getICOs("all"); echo $api->result;

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.90.0080.00026.77
8.3.80.0060.00317.97
8.3.70.0130.00318.52
8.3.60.0100.01016.88
8.3.50.0130.00518.34
8.3.40.0090.00619.05
8.3.30.0090.00618.66
8.3.20.0110.00721.73
8.3.10.0070.00023.65
8.3.00.0060.00321.54
8.2.210.0020.00526.77
8.2.200.0030.00616.63
8.2.190.0100.00716.75
8.2.180.0090.00618.52
8.2.170.0070.01122.96
8.2.160.0040.01119.21
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00819.31
8.2.120.0040.00426.35
8.2.110.0050.00520.93
8.2.100.0120.00017.91
8.2.90.0030.00619.05
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0000.00817.80
8.2.50.0000.00818.34
8.2.40.0080.00020.55
8.2.30.0060.00319.20
8.2.20.0000.00718.01
8.2.10.0050.00218.02
8.2.00.0040.00418.40
8.1.290.0090.00030.84
8.1.280.0040.01225.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.81
8.1.230.0040.00717.82
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0030.00618.53
8.1.160.0040.00418.86
8.1.150.0000.00818.83
8.1.140.0020.00519.08
8.1.130.0030.00617.59
8.1.120.0040.00417.39
8.1.110.0030.00617.32
8.1.100.0000.00717.42
8.1.90.0000.00817.43
8.1.80.0000.00817.40
8.1.70.0000.00717.42
8.1.60.0080.00017.67
8.1.50.0000.00917.61
8.1.40.0000.00817.49
8.1.30.0030.00717.73
8.1.20.0080.00017.71
8.1.10.0000.00717.64
8.1.00.0090.00017.48
8.0.300.0050.00318.77
8.0.290.0050.00316.88
8.0.280.0050.00318.36
8.0.270.0000.00717.29
8.0.260.0060.00017.21
8.0.250.0070.00016.96
8.0.240.0030.00717.01
8.0.230.0070.00016.97
8.0.220.0040.00417.05
8.0.210.0050.00216.98
8.0.200.0070.00016.92
8.0.190.0090.00017.06
8.0.180.0040.00416.85
8.0.170.0000.00916.91
8.0.160.0000.00816.93
8.0.150.0040.00416.79
8.0.140.0040.00416.93
8.0.130.0030.00313.50
8.0.120.0000.00816.86
8.0.110.0070.00016.96
8.0.100.0080.00016.88
8.0.90.0040.00416.78
8.0.80.0060.00917.00
8.0.70.0040.00416.84
8.0.60.0080.00016.84
8.0.50.0000.00716.82
8.0.30.0100.00817.13
8.0.20.0110.01017.41
8.0.10.0040.00417.04
8.0.00.0120.00616.88
7.4.330.0050.00015.55
7.4.320.0000.00616.57
7.4.300.0060.00016.65
7.4.290.0070.00016.63
7.4.280.0000.00816.63
7.4.270.0000.00716.62
7.4.260.0000.00716.57
7.4.250.0000.00716.36
7.4.240.0000.00716.61
7.4.230.0040.00416.63
7.4.220.0050.00216.64
7.4.210.0090.00616.67
7.4.200.0040.00416.66
7.4.160.0100.00816.76
7.4.150.0130.01317.40
7.4.140.0080.01217.86
7.4.130.0080.00916.57
7.4.120.0090.01016.48
7.4.110.0130.00316.62
7.4.100.0060.01116.64
7.4.90.0100.01516.70
7.4.80.0120.00619.39
7.4.70.0090.00816.66
7.4.60.0100.00616.45
7.4.50.0100.00716.45
7.4.40.0140.00316.46
7.3.330.0000.00513.48
7.3.320.0030.00313.43
7.3.310.0000.00816.36
7.3.300.0030.00316.32
7.3.290.0080.00916.46
7.3.280.0060.01116.49
7.3.270.0120.00617.40
7.3.260.0090.00916.53
7.3.250.0060.01116.43
7.3.240.0140.00616.52
7.3.230.0030.01416.75
7.3.210.0090.00916.57
7.3.200.0130.01016.53
7.3.190.0000.01516.65
7.3.180.0110.01116.40
7.3.170.0140.00316.64
7.3.160.0100.00716.44
7.2.330.0090.00916.84
7.2.320.0110.01116.50
7.2.310.0080.01016.80
7.2.300.0170.00316.56
7.2.290.0110.01116.59
7.2.10.0260.01317.99
7.2.00.0330.00917.76
7.1.120.0240.00716.76
7.1.110.0350.00316.30
7.1.100.0160.01216.05
7.1.90.0290.00616.14
7.1.80.0250.00816.03
7.1.70.0200.00815.41
7.1.60.0410.01633.35
7.1.50.0380.01633.02
7.1.40.0300.01032.77
7.1.30.0400.01232.68
7.1.20.0320.01032.59
7.1.10.0160.01114.73
7.1.00.0170.00914.83

preferences:
70.52 ms | 402 KiB | 5 Q