3v4l.org

run code in 300+ PHP versions simultaneously
<?php $partner_array = array( 'PartnerId' => '6729', ); $partner = (object) $partner_array; $buyer_array = array( 'Email' => 'escrow.buyer@hotmail.com', 'Initiator' => 'false', 'CompanyChk' => 'false', 'AutoAgree' => 'false', 'AgreementChecked' => 'false', ); $buyer = (object) $buyer_array; $seller_array = array( 'Email' => 'escrow.seller@hotmail.com', 'Initiator' => 'false', 'CompanyChk' => 'false', 'AutoAgree' => 'false', 'AgreementChecked' => 'false', ); $seller = (object) $seller_array; $broker_array = array( 'Email' => 'escrow.broker@hotmail.com', 'Initiator' => 'true', 'CompanyChk' => 'true', 'AutoAgree' => 'true', 'AgreementChecked' => 'true', ); $broker = (object) $broker_array; // This array contains objects, which container the inner array $line_items_container_array = array(); // Holds data about the line item $line_items_inner_array = array( 'ItemName' => 'Line item 1', 'Description' => 'REST Service test line item', 'Quantity' => '1', 'Price' => '2500', 'Accept' => 'true', 'SellComm' => '100', 'BuyComm' => '50', ); $line_items = (object) $line_items_inner_array; $line_items_container_array[] = $line_items; $json_array = array( 'Title' => 'JSON GM Broker Transaction (REST Service)', 'Description' => 'JSON GM Broker Transaction (REST Service)', 'TransactionType' => '1', 'EscrowPayment' => '0', 'ShipmentFee' => '25', 'ShipmentPayment' => '0', 'InspectionLength' => '6', 'Currency' => 'USD', 'Fulfillment' => '1', 'Disclosure' => '1', 'BrokerCommissionPayee' => 'Buyer', 'BrkCommissionBuyerPortion' => '18.1', 'BrkCommissionSellerPortion' => '19.1', 'CommissionType' => '1', 'InitiationDate' => '2014-04-15', 'TransactionLocked' => 'true', 'PartnerTransID' => '12345', 'TermsLocked' => 'true', 'AllowReject' => 'true', 'Partner' => $partner, 'Buyer' => $buyer, 'Seller' => $seller, 'Broker' => $broker, 'LineItems' => $line_items, ); $json = json_encode($json_array); print_r($json);

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.00718.31
8.3.50.0150.00722.03
8.3.40.0090.00618.43
8.3.30.0000.01419.21
8.3.20.0040.00420.34
8.3.10.0050.00323.58
8.3.00.0040.00719.17
8.2.180.0130.00416.32
8.2.170.0110.00322.96
8.2.160.0130.00322.03
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0060.00626.16
8.2.120.0090.00019.66
8.2.110.0110.00020.94
8.2.100.0070.00417.91
8.2.90.0100.00019.09
8.2.80.0000.00717.80
8.2.70.0030.00517.50
8.2.60.0080.00017.90
8.2.50.0030.00518.07
8.2.40.0050.00218.34
8.2.30.0050.00318.13
8.2.20.0000.00717.72
8.2.10.0040.00418.08
8.2.00.0070.00017.57
8.1.280.0160.00325.92
8.1.270.0060.00318.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00020.82
8.1.230.0070.00420.87
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01117.23
8.1.190.0020.00517.51
8.1.180.0030.00518.10
8.1.170.0040.00418.54
8.1.160.0000.00718.88
8.1.150.0040.00418.76
8.1.140.0040.00417.31
8.1.130.0060.00317.88
8.1.120.0030.00417.48
8.1.110.0040.00417.47
8.1.100.0060.00317.42
8.1.90.0070.00017.26
8.1.80.0040.00417.29
8.1.70.0070.00017.42
8.1.60.0040.00417.50
8.1.50.0050.00317.42
8.1.40.0040.00417.57
8.1.30.0030.00617.63
8.1.20.0040.00417.61
8.1.10.0040.00417.49
8.1.00.0000.00817.35
8.0.300.0000.00919.81
8.0.290.0000.00816.63
8.0.280.0030.00318.40
8.0.270.0030.00317.27
8.0.260.0030.00317.12
8.0.250.0030.00316.77
8.0.240.0030.00516.95
8.0.230.0000.00816.79
8.0.220.0070.00016.86
8.0.210.0060.00316.85
8.0.200.0040.00416.87
8.0.190.0070.00416.90
8.0.180.0000.00816.88
8.0.170.0040.00416.94
8.0.160.0040.00316.86
8.0.150.0060.00416.83
8.0.140.0040.00416.85
8.0.130.0000.00513.31
8.0.120.0000.00816.70
8.0.110.0040.00416.68
8.0.100.0050.00216.74
8.0.90.0000.00716.75
8.0.80.0100.01316.80
8.0.70.0040.00416.82
8.0.60.0000.00816.81
8.0.50.0070.00016.82
8.0.30.0100.01216.99
8.0.20.0100.01117.40
8.0.10.0000.00716.77
8.0.00.0100.00816.76
7.4.330.0050.00015.14
7.4.320.0060.00016.44
7.4.300.0040.00416.53
7.4.290.0030.00316.60
7.4.280.0060.00316.47
7.4.270.0030.00316.61
7.4.260.0030.00316.43
7.4.250.0000.00716.59
7.4.240.0080.00016.52
7.4.230.0050.00216.61
7.4.220.0110.00716.48
7.4.210.0110.00816.58
7.4.200.0000.00716.45
7.4.160.0060.00916.49
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0120.00716.50
7.4.120.0110.01016.45
7.4.110.0030.01316.51
7.4.100.0090.00916.54
7.4.90.0040.01316.43
7.4.80.0130.01219.39
7.4.70.0080.00816.44
7.4.60.0090.00616.67
7.4.50.0020.00216.22
7.4.40.0070.01016.56
7.4.30.0110.01016.59
7.4.10.0110.00014.71
7.4.00.0080.00814.82
7.3.330.0030.00413.08
7.3.320.0050.00013.26
7.3.310.0030.00316.21
7.3.300.0030.00316.38
7.3.290.0060.00916.41
7.3.280.0090.01016.35
7.3.270.0100.00917.40
7.3.260.0180.00716.60
7.3.250.0070.01016.43
7.3.240.0150.00716.39
7.3.230.0060.01516.39
7.3.210.0070.01016.44
7.3.200.0060.01219.39
7.3.190.0000.02216.41
7.3.180.0120.00316.41
7.3.170.0130.00916.41
7.3.160.0120.00416.32
7.3.130.0070.01014.89
7.3.120.0070.01014.87
7.3.110.0050.01214.93
7.3.100.0080.00614.93
7.3.90.0050.01014.91
7.3.80.0070.00714.92
7.3.70.0010.01114.89
7.3.60.0050.01014.94
7.3.50.0060.00814.81
7.3.40.0040.01014.80
7.3.30.0050.00914.58
7.3.20.0030.01116.58
7.3.10.0020.01116.67
7.3.00.0070.00716.71
7.2.330.0140.00316.75
7.2.320.0030.01316.83
7.2.310.0100.01316.86
7.2.300.0060.01016.56
7.2.290.0090.01116.71
7.2.260.0100.00714.83
7.2.250.0070.01115.17
7.2.240.0090.00815.28
7.2.230.0110.00415.15
7.2.220.0070.00615.22
7.2.210.0100.00715.13
7.2.200.0020.01115.08
7.2.190.0040.01014.98
7.2.180.0040.01315.04
7.2.170.0060.00715.10
7.2.160.0070.00715.11
7.2.150.0070.00516.96
7.2.140.0070.00616.95
7.2.130.0030.00816.69
7.2.120.0070.00716.80
7.2.110.0080.00616.85
7.2.100.0050.00816.70
7.2.90.0000.01216.92
7.2.80.0030.01216.93
7.2.70.0070.00617.02
7.2.60.0360.00916.22
7.2.50.0080.00716.79
7.2.40.0070.00616.73
7.2.30.0020.01617.07
7.2.20.0060.01117.03
7.2.10.0050.01016.90
7.2.00.0040.01017.84
7.1.330.0060.00915.88
7.1.320.0070.00515.81
7.1.310.0110.00615.84
7.1.300.0060.00515.84
7.1.290.0070.00715.73
7.1.280.0060.00915.85
7.1.270.0050.00615.78
7.1.260.0060.00815.75
7.1.250.0050.00815.95
7.1.240.0060.00615.64
7.1.230.0030.01015.58
7.1.220.0040.00815.77
7.1.210.0030.00515.92
7.1.200.0040.00715.96
7.1.190.0030.00815.92
7.1.180.0070.00415.86
7.1.170.0060.00315.80
7.1.160.0060.00615.71
7.1.150.0030.01315.95
7.1.140.0000.01115.61
7.1.130.0050.00515.94
7.1.120.0060.00915.68
7.1.110.0030.01315.70
7.1.100.0030.00716.88
7.1.90.0060.00915.66
7.1.80.0060.00615.69
7.1.70.0040.00816.58
7.1.60.0040.01017.46
7.1.50.0080.00725.20
7.1.40.0040.01015.81
7.1.30.0030.00715.90
7.1.20.0000.01615.92
7.1.10.0000.01315.84
7.1.00.0040.04119.02
7.0.330.0030.00615.45
7.0.320.0060.00615.51
7.0.310.0000.00815.60
7.0.300.0100.00315.24
7.0.290.0080.00815.19
7.0.280.0090.00615.43
7.0.270.0060.00615.27
7.0.260.0120.00415.50
7.0.250.0030.00615.60
7.0.240.0030.00615.51
7.0.230.0000.01415.40
7.0.220.0040.01415.51
7.0.210.0100.00715.36
7.0.200.0020.00816.14
7.0.190.0100.00315.64
7.0.180.0060.00615.31
7.0.170.0030.00715.57
7.0.160.0080.00015.43
7.0.150.0000.01215.43
7.0.140.0030.02618.69
7.0.130.0070.00715.55
7.0.120.0030.01015.41
7.0.110.0060.00315.21
7.0.100.0030.01015.56
7.0.90.0090.02917.67
7.0.80.0080.02617.73
7.0.70.0100.04017.75
7.0.60.0090.03917.72
7.0.50.0090.04317.95
7.0.40.0070.04016.79
7.0.30.0070.04716.82
7.0.20.0100.04016.77
7.0.10.0120.03816.80
7.0.00.0120.04016.69
5.6.400.0070.00714.63
5.6.390.0030.00914.66
5.6.380.0090.00614.05
5.6.370.0000.01314.25
5.6.360.0070.00714.03
5.6.350.0080.01114.13
5.6.340.0040.01114.13
5.6.330.0080.00814.56
5.6.320.0070.00314.40
5.6.310.0030.01014.04
5.6.300.0030.01014.50
5.6.290.0030.01314.67
5.6.280.0020.04417.58
5.6.270.0040.01114.07
5.6.260.0040.01114.74
5.6.250.0030.01414.27
5.6.240.0100.04317.49
5.6.230.0100.03117.45
5.6.220.0060.02617.52
5.6.210.0110.02417.46
5.6.200.0060.04517.81
5.6.190.0130.03717.70
5.6.180.0120.04117.65
5.6.170.0050.04117.75
5.6.160.0030.04617.67
5.6.150.0020.03917.61
5.6.140.0060.04317.65
5.6.130.0080.04017.60
5.6.120.0080.02617.94
5.6.110.0020.05417.77
5.6.100.0050.04017.78
5.6.90.0100.04317.78
5.6.80.0050.02717.34
5.6.70.0050.03417.38
5.6.60.0160.03217.27
5.6.50.0070.04417.38
5.6.40.0080.04317.24
5.6.30.0100.03917.17
5.6.20.0090.04217.24
5.6.10.0110.03017.33
5.6.00.0080.04117.42
5.5.380.0100.02217.22
5.5.370.0050.03217.41
5.5.360.0070.04517.29
5.5.350.0070.04017.18
5.5.340.0060.04117.63
5.5.330.0070.02917.27
5.5.320.0080.04517.58
5.5.310.0130.04017.55
5.5.300.0070.04317.54
5.5.290.0050.04517.74
5.5.280.0050.02417.73
5.5.270.0050.04017.51
5.5.260.0100.03817.61
5.5.250.0050.02917.41
5.5.240.0010.04417.20
5.5.230.0060.04817.20
5.5.220.0030.04217.13
5.5.210.0060.04117.14
5.5.200.0050.02817.13
5.5.190.0020.04817.16
5.5.180.0050.04817.11
5.5.170.0000.01414.28
5.5.160.0080.04317.34
5.5.150.0050.04016.99
5.5.140.0110.03617.31
5.5.130.0030.03017.34
5.5.120.0150.03617.25
5.5.110.0050.03517.18
5.5.100.0050.03317.23
5.5.90.0030.04017.06
5.5.80.0070.03517.18
5.5.70.0120.03917.13
5.5.60.0110.03317.17
5.5.50.0080.02917.10
5.5.40.0080.02217.23
5.5.30.0080.03717.22
5.5.20.0070.04417.04
5.5.10.0090.04216.91
5.5.00.0050.03416.99
5.4.450.0050.03815.72
5.4.440.0050.03815.72
5.4.430.0080.02415.66
5.4.420.0050.04115.57
5.4.410.0030.04715.55
5.4.400.0050.04215.48
5.4.390.0030.04115.35
5.4.380.0070.02515.46
5.4.370.0080.04015.48
5.4.360.0080.03615.42
5.4.350.0050.04015.47
5.4.340.0080.03815.39
5.4.330.0000.01211.88
5.4.320.0030.03015.46
5.4.310.0080.03815.51
5.4.300.0050.04215.43
5.4.290.0120.03215.51
5.4.280.0070.04615.45
5.4.270.0080.04015.34
5.4.260.0080.02015.34
5.4.250.0070.03615.50
5.4.240.0070.03715.48
5.4.230.0120.03315.50
5.4.220.0150.03315.39
5.4.210.0030.04015.48
5.4.200.0070.02715.46
5.4.190.0090.03415.33
5.4.180.0020.03715.38
5.4.170.0080.03715.48
5.4.160.0050.02915.52
5.4.150.0080.04015.48
5.4.140.0100.03314.06
5.4.130.0080.03314.10
5.4.120.0070.02714.12
5.4.110.0030.03814.12
5.4.100.0030.04314.11
5.4.90.0060.02214.09
5.4.80.0030.03814.05
5.4.70.0070.03714.15
5.4.60.0090.02514.04
5.4.50.0050.03014.06
5.4.40.0070.03514.16
5.4.30.0030.04114.08
5.4.20.0020.04014.12
5.4.10.0060.03014.04
5.4.00.0020.03013.79
5.3.290.0070.04314.70
5.3.280.0030.06714.48
5.3.270.0200.06314.58
5.3.260.0100.07014.63
5.3.250.0070.04314.62
5.3.240.0000.06014.45
5.3.230.0030.06014.48
5.3.220.0130.07014.41
5.3.210.0070.08014.50
5.3.200.0030.08014.60
5.3.190.0130.06714.58
5.3.180.0130.07014.45
5.3.170.0070.07314.41
5.3.160.0070.04014.45
5.3.150.0070.07714.41
5.3.140.0170.06314.49
5.3.130.0170.03714.43
5.3.120.0100.07014.40
5.3.110.0030.08314.52
5.3.100.0030.07013.91
5.3.90.0030.08014.00
5.3.80.0100.06714.03
5.3.70.0100.04314.01
5.3.60.0100.07314.02
5.3.50.0100.07013.82
5.3.40.0100.07013.97
5.3.30.0130.05313.88
5.3.20.0000.07313.68
5.3.10.0000.06313.53
5.3.00.0070.07313.52
5.2.170.0030.05011.02
5.2.160.0030.03311.02
5.2.150.0070.06011.19
5.2.140.0000.06710.96
5.2.130.0030.04011.17
5.2.120.0070.05711.18
5.2.110.0070.06311.16
5.2.100.0030.06011.19
5.2.90.0070.05311.19
5.2.80.0030.05011.12
5.2.70.0100.05011.17
5.2.60.0030.06310.88
5.2.50.0030.06010.88
5.2.40.0070.04710.87
5.2.30.0030.03310.83
5.2.20.0070.03710.98
5.2.10.0030.05710.90
5.2.00.0100.05010.66
5.1.60.0130.04310.02
5.1.50.0030.05710.02
5.1.40.0030.05310.02
5.1.30.0030.06010.25
5.1.20.0130.03310.40
5.1.10.0000.0409.93
5.1.00.0070.02710.09
5.0.50.0000.0408.65
5.0.40.0030.0438.47
5.0.30.0070.0408.33
5.0.20.0000.0338.20
5.0.10.0030.0378.07
5.0.00.0000.0708.02
4.4.90.0030.0336.99
4.4.80.0030.0336.99
4.4.70.0000.0376.99
4.4.60.0030.0376.99
4.4.50.0030.0336.99
4.4.40.0000.0536.99
4.4.30.0000.0306.99
4.4.20.0030.0276.99
4.4.10.0100.0236.99
4.4.00.0000.0306.99
4.3.110.0070.0276.99
4.3.100.0000.0336.99
4.3.90.0000.0376.99
4.3.80.0000.0506.99
4.3.70.0070.0176.99
4.3.60.0070.0136.99
4.3.50.0070.0306.99
4.3.40.0030.0536.99
4.3.30.0000.0376.99
4.3.20.0000.0306.99
4.3.10.0030.0306.99
4.3.00.0000.0306.99

preferences:
69.35 ms | 401 KiB | 5 Q