3v4l.org

run code in 300+ PHP versions simultaneously
<?phprequire_once dirname(__FILE__) . '/config.php';require_once dirname(__FILE__) . '/views/header.tpl.php';?><pre><?phpfunction __construct() { $this->xmlCreate(); } // Set up the IPP instance$IPP = new QuickBooks_IPP($dsn);// Get our OAuth credentials from the database$creds = $IntuitAnywhere->load($the_username, $the_tenant);// Tell the framework to load some data from the OAuth store$IPP->authMode( QuickBooks_IPP::AUTHMODE_OAUTH, $the_username, $creds);// Print the credentials we're using//print_r($creds);// This is our current realm$realm = $creds['qb_realm'];// Load the OAuth information from the databaseif ($Context = $IPP->context()){ // Set the IPP version to v3 $IPP->version(QuickBooks_IPP_IDS::VERSION_3); $AccountService = new QuickBooks_IPP_Service_Account(); $accounts = $AccountService->query($Context, $realm, "SELECT * FROM Account"); //print_r($customers); $data['acc_name'] = array(); foreach ($accounts as $Account) { // print('Account Id=' . $Account->getId() . ' is named: ' . $Account->getFullyQualifiedName() . '<br>'); // print('Account Id=' . $Account->getId() . ' is named: ' . $Account->getFullyQualifiedName() . '<br>'); $data['acc_name'][] = $Account->getFullyQualifiedName(); }print json_encode($data); static function xmlcreate($data,$root = "root") { $dom = new DOMDocument('1.0', 'utf-8'); $element = $dom->appendChild(new DOMElement($root)); $xml = $dom->saveXML(); file_put_contents($data,$xml); return $xml; }// $xml = Array2XML::createXML('data', $data); /* print("\n\n\n\n"); print('Request [' . $IPP->lastRequest() . ']'); print("\n\n\n\n"); print('Response [' . $IPP->lastResponse() . ']'); print("\n\n\n\n"); */}else{ die('Unable to load a context...?');}?></pre><?phprequire_once dirname(__FILE__) . '/views/footer.tpl.php';?>

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.70.0110.01116.58
8.3.60.0180.00318.55
8.3.50.0110.00922.94
8.3.40.0120.00918.66
8.3.30.0120.00619.02
8.3.20.0030.01320.21
8.3.10.0070.01023.47
8.3.00.0060.00319.26
8.2.180.0040.01116.38
8.2.170.0070.00722.96
8.2.160.0070.00720.27
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00521.10
8.2.110.0040.00421.91
8.2.100.0050.00520.38
8.2.90.0000.00719.22
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0040.00417.66
8.2.50.0000.00818.07
8.2.40.0070.00018.09
8.2.30.0000.00717.92
8.2.20.0030.00517.54
8.2.10.0000.00717.93
8.2.00.0080.00017.57
8.1.280.0110.00425.92
8.1.270.0000.00723.88
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00321.89
8.1.230.0080.00319.02
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0040.00418.57
8.1.160.0000.00721.89
8.1.150.0070.00018.66
8.1.140.0040.00417.24
8.1.130.0000.00717.66
8.1.120.0040.00417.30
8.1.110.0000.00717.29
8.1.100.0000.00717.21
8.1.90.0070.00017.30
8.1.80.0080.00017.18
8.1.70.0000.00717.21
8.1.60.0040.00417.43
8.1.50.0030.00517.34
8.1.40.0090.00017.42
8.1.30.0000.00817.49
8.1.20.0040.00417.41
8.1.10.0070.00017.36
8.1.00.0000.00717.38
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0080.00018.36
8.0.270.0070.00017.07
8.0.260.0060.00017.18
8.0.250.0070.00016.82
8.0.240.0030.00316.70
8.0.230.0030.00316.79
8.0.220.0000.00716.77
8.0.210.0030.00316.71
8.0.200.0030.00316.79
8.0.190.0070.00416.81
8.0.180.0000.01016.86
8.0.170.0070.00016.80
8.0.160.0040.00416.83
8.0.150.0000.00716.68
8.0.140.0040.00416.67
8.0.130.0060.00013.34
8.0.120.0070.00016.62
8.0.110.0030.00516.64
8.0.100.0000.00716.65
8.0.90.0000.00816.65
8.0.80.0140.00716.66
8.0.70.0000.00816.78
8.0.60.0080.00016.71
8.0.50.0000.00716.77
8.0.30.0140.00516.96
8.0.20.0090.01317.40
8.0.10.0070.00316.88
8.0.00.0120.00516.56
7.4.330.0020.00215.00
7.4.320.0000.00616.31
7.4.300.0000.00616.35
7.4.290.0030.00316.34
7.4.280.0040.00416.25
7.4.270.0050.00316.38
7.4.260.0000.00816.34
7.4.250.0040.00416.40
7.4.240.0060.00116.40
7.4.230.0040.00416.27
7.4.220.0030.01516.49
7.4.210.0030.01016.31
7.4.200.0000.00716.43
7.4.160.0130.00416.46
7.4.150.0100.01017.40
7.4.140.0070.01317.86
7.4.130.0100.00716.21
7.4.120.0060.01116.41
7.4.110.0030.01616.44
7.4.100.0120.00616.40
7.4.90.0110.00616.34
7.4.80.0140.00619.39
7.4.70.0060.01016.41
7.4.60.0100.01316.33
7.4.50.0030.00516.54
7.4.40.0130.00316.28
7.4.30.0040.01116.50
7.3.330.0030.00313.01
7.3.320.0050.00013.00
7.3.310.0070.00016.22
7.3.300.0000.00816.04
7.3.290.0080.00516.11
7.3.280.0110.00616.22
7.3.270.0080.00817.40
7.3.260.0150.00316.28
7.3.250.0110.00716.33
7.3.240.0040.01216.36
7.3.230.0060.01216.39
7.3.210.0040.01416.18
7.3.200.0090.00619.39
7.3.190.0050.01216.26
7.3.180.0060.01116.12
7.3.170.0090.00616.44
7.3.160.0130.00316.41
7.2.330.0070.01116.38
7.2.320.0080.00816.46
7.2.310.0070.01016.47
7.2.300.0140.00316.61
7.2.290.0120.00816.48
5.6.150.0070.07721.02
5.6.140.0030.08721.06
5.6.130.0030.08321.03
5.6.120.0070.08021.03
5.6.110.0100.05321.00
5.6.100.0030.08320.99
5.6.90.0100.08021.02
5.6.80.0000.08320.40
5.6.70.0030.07320.31
5.6.60.0070.08320.38
5.6.50.0030.04720.32
5.6.40.0030.08020.48
5.6.30.0000.07320.46
5.6.20.0070.07720.48
5.6.10.0070.07020.30
5.6.00.0000.08720.26
5.5.300.0130.07720.84
5.5.290.0000.07320.81
5.5.280.0100.08320.87
5.5.270.0030.06320.74
5.5.260.0030.08720.81
5.5.250.0030.05720.70
5.5.240.0170.06720.30
5.5.230.0070.08320.17
5.5.220.0000.08320.23
5.5.210.0100.07320.13
5.5.200.0070.07320.18
5.5.190.0100.07320.23
5.5.180.0000.08720.23
5.5.160.0070.07720.11
5.5.150.0030.06720.07
5.5.140.0000.06320.21
5.5.130.0100.07319.96
5.5.120.0000.08720.21
5.5.110.0000.08020.15
5.5.100.0130.07019.95
5.5.90.0000.08020.06
5.5.80.0130.07019.96
5.5.70.0030.08020.08
5.5.60.0030.07720.11
5.5.50.0100.06320.04
5.5.40.0030.08020.09
5.5.30.0030.05720.07
5.5.20.0070.07720.05
5.5.10.0070.06020.00
5.5.00.0130.07020.07
5.4.450.0070.06319.49
5.4.440.0030.08719.37
5.4.430.0070.08019.41
5.4.420.0000.07719.16
5.4.410.0100.07719.29
5.4.400.0030.07718.96
5.4.390.0070.08319.23
5.4.380.0070.07319.14
5.4.370.0030.05319.14
5.4.360.0000.07318.93
5.4.350.0000.07319.03
5.4.340.0030.08319.03
5.4.320.0070.07719.19
5.4.310.0000.08019.20
5.4.300.0030.07319.12
5.4.290.0070.06719.23
5.4.280.0070.06318.90
5.4.270.0030.06019.18
5.4.260.0030.07719.04
5.4.250.0100.06719.04
5.4.240.0100.05019.15
5.4.230.0030.07718.84
5.4.220.0030.05319.02
5.4.210.0030.08019.23
5.4.200.0070.03718.87
5.4.190.0070.07319.17
5.4.180.0030.07718.93
5.4.170.0100.07019.04
5.4.160.0000.07319.11
5.4.150.0030.05019.14
5.4.140.0000.06316.35
5.4.130.0100.07316.46
5.4.120.0030.07716.33
5.4.110.0000.05316.50
5.4.100.0070.07316.48
5.4.90.0030.05316.47
5.4.80.0130.05716.48
5.4.70.0070.07016.39
5.4.60.0000.07316.37
5.4.50.0130.06316.40
5.4.40.0100.06716.53
5.4.30.0030.06316.54
5.4.20.0030.06316.43
5.4.10.0030.08016.39
5.4.00.0100.07015.88
5.3.290.0070.07714.66
5.3.280.0100.06314.57
5.3.270.0030.04714.61
5.3.260.0070.07014.61
5.3.250.0000.07314.55
5.3.240.0030.08014.56
5.3.230.0000.08714.57
5.3.220.0030.05714.56
5.3.210.0030.06314.57
5.3.200.0070.07314.39
5.3.190.0030.08014.40
5.3.180.0000.07714.55
5.3.170.0030.07714.41
5.3.160.0030.08014.52
5.3.150.0030.07314.55
5.3.140.0070.07314.53
5.3.130.0070.06714.40
5.3.120.0000.08314.36
5.3.110.0030.06714.47
5.3.100.0070.07714.02
5.3.90.0000.08013.99
5.3.80.0030.05313.97
5.3.70.0130.07013.76
5.3.60.0030.06313.98
5.3.50.0070.06313.84
5.3.40.0000.07713.71
5.3.30.0030.07713.89
5.3.20.0000.07313.63
5.3.10.0000.07713.60
5.3.00.0130.05313.64
5.2.170.0030.06313.55
5.2.160.0030.06313.55
5.2.150.0000.06013.55
5.2.140.0030.04713.55
5.2.130.0070.05013.55
5.2.120.0000.06013.55
5.2.110.0030.06013.55
5.2.100.0070.03713.55
5.2.90.0000.03713.55
5.2.80.0030.02713.55
5.2.70.0000.04013.55
5.2.60.0000.03313.55
5.2.50.0000.03013.55
5.2.40.0030.03013.55
5.2.30.0030.02713.55
5.2.20.0000.03013.55
5.2.10.0000.03013.55
5.2.00.0000.03013.55
5.1.60.0000.05013.55
5.1.50.0070.03313.55
5.1.40.0030.02013.55
5.1.30.0000.02713.55
5.1.20.0030.02713.55
5.1.10.0030.02313.55
5.1.00.0030.05313.55
5.0.50.0000.04313.55
5.0.40.0000.02313.55
5.0.30.0100.02713.55
5.0.20.0000.02013.55
5.0.10.0000.04713.55
5.0.00.0030.03313.55
4.4.90.0000.01713.55
4.4.80.0070.01013.55
4.4.70.0000.02713.55
4.4.60.0030.01313.55
4.4.50.0000.01713.55
4.4.40.0030.03013.55
4.4.30.0000.01713.55
4.4.20.0000.01313.55
4.4.10.0000.01713.55
4.4.00.0000.03313.55
4.3.110.0030.02313.55
4.3.100.0000.01713.55
4.3.90.0030.03013.55
4.3.80.0030.02013.55
4.3.70.0030.01313.55
4.3.60.0070.03013.55
4.3.50.0030.01313.55
4.3.40.0000.02313.55
4.3.30.0030.03313.55
4.3.20.0000.03313.55
4.3.10.0070.02013.55
4.3.00.0000.02713.55

preferences:
99.89 ms | 401 KiB | 5 Q