3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * OpenPayU * * @copyright Copyright (c) 2014 PayU * @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0) * * http://www.payu.com * http://developers.payu.com * http://twitter.com/openpayu * */ session_start(); var_dump($_SESSION['current_token']); require_once realpath(dirname(__FILE__)) . '/../../../lib/openpayu.php'; require_once realpath(dirname(__FILE__)) . '/../../config.php'; $currentToken = $_SESSION['current_token']; $order = array( 'customerIp' => '127.0.0.1', 'notifyUrl' => 'http://oskartestserver.net/examples/v2/order/Notify.php', 'merchantPosId' =>'185641', 'continueUrl' =>'http://oskartestserver.net/positive', 'description' => 'popis transakce', 'currencyCode' => 'CZK', 'totalAmount' => '999', 'buyer' => array( 'email' => 'email@exampledomain.com', 'firstName' => 'Jan', 'lastName' => 'Novak', 'delivery' => array( 'recipientName' => 'Jan Novak', 'countryCode' => 'CZ') ), 'products' => array( array('name' => 'Mouse', 'unitPrice' => '999', 'quantity' => '1') ), 'payMethods' => array( 'payMethod' => array( 'type' =>'CARD_TOKEN', 'value' => $currentToken) ), 'settings' => array( 'agreement' => 'true') ); ?> <!doctype html> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>Create Order - OpenPayU v2</title> <link rel="stylesheet" href="../../layout/css/bootstrap.min.css"> <link rel="stylesheet" href="../../layout/css/style.css"> </head> <body> <div class="container"> <div class="page-header"> <h1>Create Order - OpenPayU v2</h1> </div> <?php try { $response = OpenPayU_Order::create($order); $status_desc = OpenPayU_Util::statusDesc($response->getStatus()); if($response->getStatus() == 'SUCCESS'){ echo '<div class="alert alert-success">SUCCESS: '.$status_desc; echo '</div>'; }else{ echo '<div class="alert alert-warning">'.$response->getStatus().': '.$status_desc; echo '</div>'; } }catch (OpenPayU_Exception $e){ echo '<pre>'; var_dump((string)$e); echo '</pre>'; } ?> <h1>Request</h1> <div id="unregisteredCardData"> <?php var_dump($order); ?> </div> <table class="table table-hover table-bordered"> <thead> <tr> <th colspan="2">Important data from response</th> </tr> </thead> <tbody> <tr> <td>Order status</td> <td><?= $response->getStatus() ?></td> </tr> <tr> <td>Order id</td> <td><?= $response->getResponse()->orderId ?></td> <?php file_put_contents(__DIR__.'/orderID.log', $response->getResponse()->orderId); ?> </tr> <tr> <td>Redirect Uri</td> <td><a href="<?= $response->getResponse()->redirectUri ?>"><?= $response->getResponse()->redirectUri ?></a> </td> </tr> </tbody> </table> <h1>Response</h1> <div id="unregisteredCardData"> <?php var_dump($response); ?> </div> </div> </html>

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.0160.00617.00
8.3.60.0160.00618.43
8.3.50.0100.00922.11
8.3.40.0130.00618.87
8.3.30.0120.00319.35
8.3.20.0040.00420.32
8.3.10.0040.00423.61
8.3.00.0040.00419.13
8.2.190.0090.00618.79
8.2.180.0060.01217.00
8.2.170.0100.00722.96
8.2.160.0150.00019.29
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00020.93
8.2.110.0060.00322.14
8.2.100.0090.00317.91
8.2.90.0060.00319.22
8.2.80.0030.00517.97
8.2.70.0040.00417.75
8.2.60.0040.00418.03
8.2.50.0000.00918.07
8.2.40.0030.00518.13
8.2.30.0040.00418.21
8.2.20.0030.00517.88
8.2.10.0060.00318.32
8.2.00.0040.00417.96
8.1.280.0040.01825.92
8.1.270.0060.00319.00
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00724.01
8.1.230.0040.00719.34
8.1.220.0000.00817.91
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0060.00317.48
8.1.180.0050.00318.10
8.1.170.0060.00318.73
8.1.160.0080.00022.06
8.1.150.0000.00718.95
8.1.140.0000.00717.50
8.1.130.0050.00317.79
8.1.120.0070.00017.39
8.1.110.0060.00317.46
8.1.100.0040.00417.46
8.1.90.0000.00717.37
8.1.80.0040.00417.43
8.1.70.0030.00317.50
8.1.60.0000.00817.68
8.1.50.0040.00417.57
8.1.40.0000.00817.57
8.1.30.0000.00817.75
8.1.20.0000.00917.77
8.1.10.0030.00517.59
8.1.00.0080.00017.45
8.0.300.0070.00018.77
8.0.290.0070.00017.00
8.0.280.0000.00718.64
8.0.270.0000.00717.37
8.0.260.0000.00617.46
8.0.250.0030.00317.06
8.0.240.0040.00417.07
8.0.230.0000.00717.24
8.0.220.0030.00316.99
8.0.210.0000.00717.01
8.0.200.0030.00317.11
8.0.190.0040.00417.18
8.0.180.0070.00017.17
8.0.170.0000.00817.11
8.0.160.0000.00817.13
8.0.150.0000.00816.98
8.0.140.0040.00417.05
8.0.130.0000.00713.57
8.0.120.0020.00515.32
8.0.110.0060.00115.32
8.0.100.0040.00315.21
8.0.90.0050.00215.34
8.0.80.0060.00615.32
8.0.70.0000.00715.22
8.0.60.0030.00415.29
8.0.50.0040.00415.33
8.0.30.0060.01315.91
8.0.20.0090.00716.10
8.0.10.0060.00215.26
8.0.00.0050.00915.71
7.4.330.0000.00515.03
7.4.320.0000.00716.50
7.4.300.0050.00216.64
7.4.290.0030.00516.68
7.4.280.0030.00616.45
7.4.270.0000.00716.55
7.4.260.0060.00316.59
7.4.250.0020.00614.96
7.4.240.0050.00215.56
7.4.230.0050.00215.04
7.4.220.0060.00515.01
7.4.210.0080.00714.99
7.4.200.0010.00614.94
7.4.190.0060.00013.42
7.4.180.0040.00413.38
7.4.160.0040.00815.12
7.4.150.0070.00615.36
7.4.140.0070.00916.30
7.4.130.0060.00815.49
7.4.120.0070.00715.55
7.4.110.0060.00714.86
7.4.100.0090.00315.03
7.4.90.0060.00714.87
7.4.80.0030.01116.28
7.4.70.0100.00314.94
7.4.60.0010.01014.89
7.4.50.0000.00514.82
7.4.40.0060.00714.83
7.4.30.0030.00914.93
7.4.20.0030.00313.30
7.4.10.0040.00313.23
7.4.00.0030.01114.55
7.3.330.0000.00513.19
7.3.320.0030.00313.22
7.3.310.0020.00514.94
7.3.300.0040.00314.84
7.3.290.0070.00515.62
7.3.280.0110.00815.66
7.3.270.0060.00815.27
7.3.260.0090.00315.05
7.3.250.0080.00715.33
7.3.240.0050.00714.91
7.3.230.0050.00714.79
7.3.220.0070.00013.23
7.3.210.0030.01014.75
7.3.200.0040.00716.24
7.3.190.0060.00514.80
7.3.180.0060.00514.91
7.3.170.0060.00814.87
7.3.160.0140.00214.79
7.3.150.0000.00613.18
7.3.140.0000.00613.14
7.3.130.0000.00613.29
7.3.120.0060.00714.38
7.3.110.0060.00914.16
7.3.100.0010.01014.24
7.3.90.0060.00314.47
7.3.80.0040.00714.34
7.3.70.0050.00614.37
7.3.60.0060.00614.25
7.3.50.0020.00814.34
7.3.40.0060.00514.32
7.3.30.0040.00914.21
7.3.20.0040.00716.18
7.3.10.0060.00416.13
7.3.00.0040.00816.06
7.2.340.0060.00613.20
7.2.330.0070.00815.04
7.2.320.0150.00215.08
7.2.310.0090.00714.80
7.2.300.0100.00514.75
7.2.290.0130.00515.03
7.2.280.0100.00313.18
7.2.270.0130.00013.22
7.2.260.0100.00213.20
7.2.250.0080.00914.64
7.2.240.0050.01414.51
7.2.230.0050.00814.42
7.2.220.0080.00314.44
7.2.210.0070.00514.65
7.2.200.0090.00514.57
7.2.190.0030.01214.45
7.2.180.0050.01014.41
7.2.170.0040.00814.48
7.2.160.0100.00413.15
7.2.150.0100.00314.97
7.2.140.0100.00315.11
7.2.130.0100.00215.36
7.2.120.0130.00015.04
7.2.110.0120.00015.17
7.2.100.0060.00615.19
7.2.90.0110.00215.02
7.2.80.0060.00615.01
7.2.70.0100.00315.11
7.2.60.0120.00015.11
7.2.50.0090.00315.13
7.2.40.0090.00415.14
7.2.30.0090.00515.23
7.2.20.0060.00615.13
7.2.10.0110.00215.29
7.2.00.0070.00517.22
7.1.330.0070.00715.30
7.1.320.0090.00315.31
7.1.310.0080.00515.06
7.1.300.0050.00815.20
7.1.290.0070.00515.19
7.1.280.0080.00615.23
7.1.270.0050.01015.13
7.1.260.0060.00715.15
7.1.250.0000.01214.10
7.1.240.0080.00414.09
7.1.230.0000.01214.16
7.1.220.0000.01214.12
7.1.210.0100.00214.13
7.1.200.0060.00614.11
7.1.190.0000.01214.09
7.1.180.0120.00014.19
7.1.170.0000.01113.98
7.1.160.0120.00014.11
7.1.150.0090.00314.11
7.1.140.0130.00014.23
7.1.130.0060.00613.97
7.1.120.0060.00614.19
7.1.110.0000.01114.01
7.1.100.0320.00515.04
7.1.90.0000.01213.97
7.1.80.0090.00314.06
7.1.70.0060.00815.62
7.1.60.0060.00716.74
7.1.50.0120.00715.56
7.1.40.0060.00614.28
7.1.30.0100.00314.29
7.1.20.0080.00614.11
7.1.10.0090.00313.95
7.1.00.0040.04118.28
7.0.330.0090.00313.89
7.0.320.0060.00614.07
7.0.310.0120.00013.90
7.0.300.0120.00014.02
7.0.290.0080.00414.03
7.0.280.0090.00314.04
7.0.270.0060.00613.93
7.0.260.0120.00014.01
7.0.250.0090.00314.08
7.0.240.0060.00613.96
7.0.230.0100.00213.96
7.0.220.0120.00013.98
7.0.210.0090.00314.00
7.0.200.0030.00815.46
7.0.190.0100.00213.83
7.0.180.0000.01214.03
7.0.170.0080.00314.10
7.0.160.0090.00414.02
7.0.150.0040.00813.91
7.0.140.0050.02018.03
7.0.130.0100.00214.09
7.0.120.0090.00214.11
7.0.110.0000.01113.78
7.0.100.0080.00313.94
7.0.90.0110.00013.77
7.0.80.0090.00313.89
7.0.70.0060.00614.03
7.0.60.0090.03816.99
7.0.50.0090.02815.78
7.0.40.0030.02617.05
7.0.30.0170.04017.09
7.0.20.0210.02217.07
7.0.10.0040.02817.07
7.0.00.0090.04317.04
5.6.400.0040.00712.66
5.6.390.0090.00212.51
5.6.380.0070.00412.46
5.6.370.0090.00312.64
5.6.360.0090.00312.81
5.6.350.0090.00212.82
5.6.340.0090.00312.62
5.6.330.0000.01112.61
5.6.320.0080.00312.64
5.6.310.0110.00012.71
5.6.300.0000.01112.50
5.6.290.0050.00512.53
5.6.280.0090.03516.88
5.6.270.0070.00412.52
5.6.260.0070.00412.71
5.6.250.0110.00012.58
5.6.240.0050.00512.45
5.6.230.0060.00612.66
5.6.220.0110.00012.52
5.6.210.0030.03816.63
5.6.200.0090.02815.50
5.6.190.0090.04416.73
5.6.180.1600.02016.56
5.6.170.0200.03116.55
5.6.160.0070.03516.54
5.6.150.0060.04415.50
5.6.140.0080.02015.43
5.6.130.0070.03715.48
5.6.120.0060.02416.75
5.6.110.0080.04316.80
5.6.100.0050.03216.82
5.6.90.0100.02616.76
5.6.80.0020.03516.37
5.6.70.0000.01112.73
5.6.60.0070.00412.70
5.6.50.0110.00012.63
5.6.40.0070.00412.82
5.6.30.0080.00312.63
5.6.20.0080.00412.59
5.6.10.0030.00712.59
5.6.00.0080.00312.66
5.5.380.0080.00412.87
5.5.370.0110.00012.73
5.5.360.0090.00312.48
5.5.350.0060.04316.45
5.5.340.0070.03715.20
5.5.330.0090.04116.38
5.5.320.0230.03516.46
5.5.310.0140.02316.40
5.5.300.0100.02315.35
5.5.290.0060.04115.37
5.5.280.0130.03816.64
5.5.270.0060.03816.57
5.5.260.0140.04016.57
5.5.250.0050.02516.54
5.5.240.0070.03816.47
5.5.230.0090.00212.67
5.5.220.0070.00312.54
5.5.210.0000.01012.50
5.5.200.0070.00512.68
5.5.190.0080.00312.61
5.5.180.0040.00712.50
5.5.170.0110.00012.39
5.5.160.0070.00312.67
5.5.150.0110.00012.48
5.5.140.0110.00012.40
5.5.130.0080.00312.35
5.5.120.0080.00312.35
5.5.110.0070.00512.26
5.5.100.0120.00012.43
5.5.90.0000.01112.60
5.5.80.0090.00212.56
5.5.70.0110.00012.42
5.5.60.0090.00312.60
5.5.50.0070.00412.56
5.5.40.0080.00312.61
5.5.30.0110.00012.63
5.5.20.0110.00012.75
5.5.10.0070.00312.47
5.5.00.0100.00012.68
5.4.450.0290.02715.89
5.4.440.0410.03016.06
5.4.430.0220.03315.94
5.4.420.0540.02816.00
5.4.410.0370.03715.95
5.4.400.0450.03015.98
5.4.390.0160.03115.67
5.4.380.0260.03015.78
5.4.370.0190.03515.66
5.4.360.0110.04015.68
5.4.350.0160.03615.58
5.4.340.0160.03315.57
5.4.330.0090.00312.70
5.4.320.0220.03515.60
5.4.310.0140.03915.59
5.4.300.0180.02215.63
5.4.290.0210.02615.59
5.4.280.0200.02815.54
5.4.270.0310.02515.67
5.4.260.0220.02815.57
5.4.250.0180.03815.48
5.4.240.0140.04115.67
5.4.230.0130.03315.59
5.4.220.0210.03815.60
5.4.210.0050.03715.47
5.4.200.0190.03514.60
5.4.190.0200.03615.42
5.4.180.0160.02815.61
5.4.170.0100.03515.60
5.4.160.0130.03315.53
5.4.150.0080.03815.55
5.4.140.0140.02914.28
5.4.130.0190.03314.36
5.4.120.0160.02414.42
5.4.110.0180.02314.46
5.4.100.0160.03014.29
5.4.90.0260.03314.25
5.4.80.0170.02814.45
5.4.70.0140.03014.38
5.4.60.0100.03514.43
5.4.50.0140.02814.32
5.4.40.0160.02714.53
5.4.30.0150.02814.51
5.4.20.0130.03314.44
5.4.10.0100.03414.55
5.4.00.0220.02914.01
5.3.290.0110.03413.93
5.3.280.0200.03213.80
5.3.270.0150.03513.92
5.3.260.0270.02913.68
5.3.250.0130.03213.87
5.3.240.0110.03113.85
5.3.230.0190.02513.77
5.3.220.0150.02713.84
5.3.210.0180.03613.86
5.3.200.0160.03613.84
5.3.190.0150.03013.73
5.3.180.0140.02913.99
5.3.170.0140.03113.83
5.3.160.0190.03713.98
5.3.150.0190.02513.80
5.3.140.0180.02313.79
5.3.130.0150.03413.71
5.3.120.0100.03913.76
5.3.110.0130.04113.74
5.3.100.0170.03513.62
5.3.90.0120.04113.63
5.3.80.0170.03313.51
5.3.70.0220.02813.47
5.3.60.0120.03813.54
5.3.50.0170.03213.53
5.3.40.0100.04013.40
5.3.30.0190.03113.50
5.3.20.0230.02013.15
5.3.10.0100.03213.29
5.3.00.0160.02613.25
5.2.170.0120.02411.69
5.2.160.0090.02611.69
5.2.150.0070.02711.55
5.2.140.0140.02011.52
5.2.130.0080.02511.60
5.2.120.0150.01811.54
5.2.110.0160.01911.70
5.2.100.0100.03011.56
5.2.90.0070.02711.57
5.2.80.0100.02611.57
5.2.70.0120.03111.61
5.2.60.0160.02711.41
5.2.50.0120.02811.39
5.2.40.0140.01711.47
5.2.30.0130.02311.38
5.2.20.0580.02211.46
5.2.10.0360.02411.32
5.2.00.0480.02611.10
5.1.60.0430.02110.55
5.1.50.0480.02010.58
5.1.40.0690.01310.55
5.1.30.0750.01710.80
5.1.20.0680.02810.64
5.1.10.0360.02310.60
5.1.00.0740.01510.44
5.0.50.0330.0179.53
5.0.40.0250.0189.44
5.0.30.0490.0259.40
5.0.20.0440.0139.40
5.0.10.0330.0209.41
5.0.00.0340.0239.37
4.4.90.0050.0158.19
4.4.80.0090.0138.20
4.4.70.0050.0178.18
4.4.60.0020.0158.22
4.4.50.0080.0128.19
4.4.40.0070.0208.16
4.4.30.0050.0158.20
4.4.20.0030.0148.21
4.4.10.0010.0168.22
4.4.00.0050.0188.22
4.3.110.0100.0088.17
4.3.100.0020.0158.12
4.3.90.0050.0128.15
4.3.80.0000.0248.15
4.3.70.0040.0138.16
4.3.60.0050.0138.18
4.3.50.0050.0158.16
4.3.40.0050.0228.12
4.3.30.0050.0137.96
4.3.20.0020.0167.96
4.3.10.0010.0177.96
4.3.00.0020.0119.23

preferences:
63.11 ms | 401 KiB | 5 Q