3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = json_encode([ "success" => true, "quoteId" => 11, "abcValue" => 0, "priceResponse" => [ [ "priceId" => 1263, "fPrice" => 37.14, "grossPrice" => 44.7, "priceType" => "ABC", ], [ "priceId" => 1263, "fPrice" => 37.14, "grossPrice" => 44.7, "priceType" => "ABC", ], [ "priceId" => 1266, "fPrice" => 550.14, "grossPrice" => 544.7, "priceType" => "DEF", ], ], ]); $object = json_decode($response); $object = (object)[ 'success' => $object->success, 'quoteId' => $object->quoteId, 'priceResponse' => array_map( fn($item) => [ 'priceId' => $item->priceId, 'customPrice' => $item->grossPrice * 1.1, ], $object->priceResponse ) ]; print_r($object);

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.5.10.0060.00216.66
8.5.00.0120.00920.04
8.4.160.0080.01323.86
8.4.150.0000.00214.05
8.4.140.0120.00917.58
8.4.130.0070.00518.53
8.4.120.0140.00624.11
8.4.110.0070.00518.86
8.4.100.0090.00718.61
8.4.90.0060.00220.53
8.4.80.0100.01118.97
8.4.70.0110.00920.66
8.4.60.0130.00718.79
8.4.50.0040.00720.29
8.4.40.0150.00617.87
8.4.30.0120.00918.38
8.4.20.0370.00017.57
8.4.10.0190.00317.50
8.3.280.0160.01218.60
8.3.270.0120.00916.59
8.3.260.0130.00716.72
8.3.250.0110.00817.19
8.3.240.0040.00317.09
8.3.230.0160.00516.84
8.3.220.0090.00719.10
8.3.210.0080.01016.62
8.3.200.0030.00616.84
8.3.190.0040.00417.31
8.3.180.0100.01019.05
8.3.170.0130.00617.16
8.3.160.0250.00016.58
8.3.150.0150.00616.47
8.3.140.0210.00018.03
8.3.130.0120.00616.47
8.3.120.0200.00016.50
8.3.110.0110.00718.11
8.3.100.0170.00416.60
8.3.90.0180.00416.42
8.3.80.0140.00818.02
8.3.70.0200.00018.43
8.3.60.0120.00816.65
8.3.50.0220.00016.54
8.3.40.0170.00417.37
8.3.30.0120.00317.21
8.3.20.0150.00417.32
8.3.10.0110.00917.24
8.3.00.0100.00217.10
8.2.290.0110.00720.36
8.2.280.0120.00718.45
8.2.270.0120.00816.56
8.2.260.0170.00016.32
8.2.250.0170.00316.73
8.2.240.0070.01116.28
8.2.230.0150.00316.20
8.2.220.0140.00316.63
8.2.210.0130.00416.16
8.2.200.0150.00316.61
8.2.190.0110.00616.56
8.2.180.0130.00416.45
8.2.170.0170.00317.47
8.2.160.0110.00717.40
8.2.150.0130.00417.39
8.2.140.0140.00417.43
8.2.130.0140.00517.45
8.2.120.0190.00017.47
8.2.110.0180.00317.64
8.2.100.0180.00017.47
8.2.90.0110.00817.46
8.2.80.0150.00417.41
8.2.70.0190.00017.19
8.2.60.0180.00017.46
8.2.50.0130.00517.38
8.2.40.0120.00417.39
8.2.30.0110.00717.39
8.2.20.0100.00517.44
8.2.10.0160.00017.29
8.2.00.0120.00617.42
8.1.320.0110.00816.33

preferences:
22.81 ms | 403 KiB | 5 Q