3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = [ 'success' => 1, 'return' => [ 'sellorders' => [ [ 'sellprice' => 0.00000059, 'quantity' => 1076.00000000, 'total' => 0.00063484, ], [ 'sellprice' => 0.00000060, 'quantity' => 927.41519000, 'total' => 0.00055645, ], ], 'buyorders' => [ [ 'buyprice' => 0.00000058, 'quantity' => 6535.77328102, 'total' => 0.00379075, ], [ 'buyprice' => 0.00000057, 'quantity' => 118539.39620414, 'total' => 0.06756746, ], ], ], ]; $result = []; foreach ($response['return'] as $orders) { foreach ($orders as $item) { $result[] = [ 'sellprice' => $item['sellprice'] ?? $item['buyprice'], 'sellquantity' => $item['quantity'], 'selltotal' => $item['total'], ]; } } var_export($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.5.00.0120.00920.05
8.4.150.0020.00014.05
8.4.140.0110.01117.34
8.4.130.0070.00218.88
8.4.120.0120.00824.12
8.4.110.0150.00420.23
8.4.100.0090.00918.80
8.4.90.0150.00520.60
8.4.80.0060.00418.99
8.4.70.0110.01020.65
8.4.60.0090.01119.09
8.4.50.0080.00820.35
8.4.40.0100.01017.65
8.4.30.0120.00817.49
8.4.20.0090.00717.48
8.4.10.0180.00617.45
8.3.280.0130.00818.51
8.3.270.0030.00516.55
8.3.260.0130.00716.86
8.3.250.0130.00618.85
8.3.240.0110.00817.35
8.3.230.0110.00716.77
8.3.220.0110.00719.11
8.3.210.0060.01118.50
8.3.200.0110.00816.76
8.3.190.0060.00317.18
8.3.180.0110.00819.05
8.3.170.0070.01117.24
8.3.160.0090.00518.17
8.3.150.0160.00716.54
8.3.140.0170.00416.48
8.3.130.0140.00316.42
8.3.120.0120.00716.45
8.3.110.0140.00416.51
8.3.100.0160.00616.55
8.3.90.0150.00516.52
8.3.80.0160.00516.42
8.3.70.0180.00316.43
8.3.60.0150.00616.49
8.3.50.0170.00416.51
8.3.40.0140.00317.28
8.3.30.0110.00417.25
8.3.20.0120.00517.22
8.3.10.0130.00617.51
8.3.00.0090.00417.28
8.2.290.0090.00920.66
8.2.280.0110.00718.14
8.2.270.0090.00516.49
8.2.260.0140.00216.65
8.2.250.0150.00316.40
8.2.240.0140.00316.43
8.2.230.0110.00616.40
8.2.220.0140.00616.50
8.2.210.0170.00116.35
8.2.200.0160.00116.39
8.2.190.0150.00316.40
8.2.180.0120.00616.39
8.2.170.0170.00217.55
8.2.160.0140.00417.45
8.2.150.0120.00617.49
8.2.140.0170.00217.37
8.2.130.0130.00517.40
8.2.120.0150.00617.41
8.2.110.0140.00418.10
8.2.100.0120.00617.46
8.2.90.0130.00317.39
8.2.80.0150.00317.34
8.2.70.0110.00517.28
8.2.60.0080.00417.35
8.2.50.0120.00417.34
8.2.40.0140.00417.50
8.2.30.0130.00417.41
8.2.20.0130.00517.33
8.2.10.0150.00217.33
8.2.00.0130.00417.36
8.1.320.0120.00716.17

preferences:
30.05 ms | 403 KiB | 5 Q