3v4l.org

run code in 500+ PHP versions simultaneously
<?php $timeline[$key][] = [ '_attributes' => [ 'operation' => 'Add' ], 'KeyID' => $barcode['product']['id'], 'ITEMNO' => $barcode['product']['sku'], 'QUANTITY' => '1', 'ITEMUNIT' => $barcode['product']['unit'], 'UNITRATIO' => '1', 'ITEMRESERVED1' => '', 'ITEMRESERVED2' => '', 'ITEMRESERVED3' => '', 'ITEMRESERVED4' => '', 'ITEMRESERVED5' => '', 'ITEMRESERVED6' => '', 'ITEMRESERVED7' => '', 'ITEMRESERVED8' => '', 'ITEMRESERVED9' => '', 'ITEMRESERVED10' => '', 'UNITPRICE' => $barcode['product']['price'], 'QTYCONTROL' => '0', ] + $grouped->toArray();

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.70.0110.00716.71
8.5.60.0100.00817.04
8.5.50.0130.00516.96
8.5.30.0090.00919.32
8.5.20.0110.00621.80
8.5.10.0070.01216.78
8.5.00.0120.00920.30
8.4.220.0150.00619.59
8.4.210.0120.00821.38
8.4.180.0120.01319.85
8.4.170.0150.00623.76
8.4.160.0120.01123.85
8.4.150.0080.00516.96
8.4.140.0150.00617.61
8.4.130.0090.01118.50
8.4.120.0130.00723.70
8.4.110.0090.01118.19
8.4.100.0120.00819.19
8.4.90.0110.00820.30
8.4.80.0040.00418.67
8.4.70.0090.01018.03
8.4.60.0110.01018.88
8.4.50.0120.00818.60
8.4.40.0200.00017.86
8.4.30.0070.01320.46
8.4.20.0130.01023.96
8.4.10.0120.00624.49
8.3.310.0130.00718.70
8.3.300.0110.00820.71
8.3.290.0140.00620.93
8.3.280.0130.00718.50
8.3.270.0110.00816.73
8.3.260.0110.00916.64
8.3.250.0070.01218.65
8.3.240.0140.00617.26
8.3.230.0120.00716.60
8.3.220.0110.00818.86
8.3.210.0100.00816.57
8.3.200.0060.00316.56
8.3.190.0030.00618.82
8.3.180.0080.00917.41
8.3.170.0060.01220.53
8.3.160.0040.00416.81
8.3.150.0030.00517.08
8.3.140.0100.00016.64
8.3.130.0040.00418.51
8.3.120.0080.00520.53
8.3.110.0070.01120.94
8.3.100.0080.00018.55
8.3.90.0000.00818.57
8.3.80.0060.00319.36
8.3.70.0000.01516.63
8.3.60.0100.01018.43
8.3.50.0110.00924.43
8.3.40.0120.00618.82
8.3.30.0110.00418.75
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0070.00026.16
8.2.310.0080.01218.05
8.2.300.0110.01222.14
8.2.290.0100.00820.36
8.2.280.0140.00518.59
8.2.270.0150.00417.20
8.2.260.0050.00318.43
8.2.250.0060.00318.34
8.2.240.0130.00317.09
8.2.230.0130.00322.58
8.2.220.0000.00824.06
8.2.210.0050.00326.77
8.2.200.0080.00316.50
8.2.190.0090.00616.88
8.2.180.0090.00625.92
8.2.170.0150.00619.04
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0000.00924.66
8.2.130.0050.00326.16
8.2.120.0040.00426.35
8.2.110.0030.00622.30
8.2.100.0090.00317.77
8.2.90.0040.00417.75
8.2.80.0000.00818.57
8.2.70.0050.00517.93
8.2.60.0040.00417.63
8.2.50.0050.00318.05
8.2.40.0050.00318.09
8.2.30.0040.00418.16
8.2.20.0070.00018.14
8.2.10.0040.00419.23
8.2.00.0050.00219.24
8.1.340.0070.01617.80
8.1.330.0120.00721.84
8.1.320.0130.00716.53
8.1.310.0040.00416.43
8.1.300.0000.01618.06
8.1.290.0040.00418.88
8.1.280.0140.00725.92
8.1.270.0150.00023.99
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00423.91
8.1.230.0070.00419.10
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0050.00318.52
8.1.160.0070.00018.77
8.1.150.0040.00418.90
8.1.140.0000.00718.73
8.1.130.0030.00320.11
8.1.120.0030.00517.35
8.1.110.0040.00417.39
8.1.100.0040.00417.33
8.1.90.0030.00517.48
8.1.80.0030.00617.39
8.1.70.0070.00017.32
8.1.60.0000.00817.39
8.1.50.0040.00417.49
8.1.40.0000.00717.37
8.1.30.0050.00317.55
8.1.20.0040.00417.59
8.1.10.0050.00317.56
8.1.00.0030.00617.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0080.00018.36
8.0.270.0050.00218.03
8.0.260.0000.00818.41
8.0.250.0070.00017.06
8.0.240.0030.00316.99
8.0.230.0030.00316.99
8.0.220.0030.00316.93
8.0.210.0040.00416.91
8.0.200.0060.00016.96
8.0.190.0000.00817.02
8.0.180.0050.00316.77
8.0.170.0060.00316.95
8.0.160.0000.00816.95
8.0.150.0050.00316.86
8.0.140.0000.00716.75
8.0.130.0000.00613.24
8.0.120.0000.00716.89
8.0.110.0000.00716.79
8.0.100.0040.00416.89
8.0.90.0000.00816.72
8.0.80.0070.01216.90
8.0.70.0000.00816.79
8.0.60.0000.00716.80
8.0.50.0070.00016.97
8.0.30.0070.01017.03
8.0.20.0150.00617.17
8.0.10.0080.00016.93
8.0.00.0220.00316.79
7.4.330.0020.00215.55
7.4.320.0030.00316.50
7.4.300.0000.00716.55
7.4.290.0070.00416.52
7.4.280.0080.00016.45
7.4.270.0000.00716.38
7.4.260.0030.00313.15
7.4.250.0070.00016.42
7.4.240.0000.00716.54
7.4.230.0040.00416.51
7.4.220.0040.00416.38
7.4.210.0040.01316.55
7.4.200.0070.00016.31
7.4.130.0130.00916.52
7.4.120.0160.00316.50
7.4.110.0080.00816.38
7.4.100.0090.00916.34
7.4.90.0110.00816.64
7.4.80.0100.01016.54
7.4.70.0080.01516.46
7.4.60.0090.01216.66
7.4.50.0070.01516.45
7.4.40.0120.00616.78
7.4.30.0060.01516.55
7.4.20.0090.01516.63
7.4.10.0110.01216.35
7.4.00.0040.01816.54
7.3.330.0030.00616.37
7.3.320.0030.00313.09
7.3.310.0040.00416.36
7.3.300.0070.00016.40
7.3.290.0070.01016.36
7.3.260.0110.00616.37
7.3.230.0100.01016.48
7.3.210.0060.01216.40
7.3.200.0160.00316.53
7.3.190.0120.00916.57
7.3.180.0090.00916.51
7.3.170.0160.00616.54
7.3.160.0130.00716.47
7.3.150.0030.01816.29
7.3.140.0120.00616.50
7.3.130.0120.00616.48
7.3.120.0090.00916.50
7.3.110.0150.00616.41
7.3.100.0110.00816.28
7.3.90.0150.00416.46
7.3.80.0110.01116.54
7.3.70.0140.00716.34
7.3.60.0130.01416.29
7.3.50.0110.01116.11
7.3.40.0160.00616.41
7.3.30.0140.00716.43
7.3.20.0130.01216.50
7.3.10.0130.01016.34
7.3.00.0090.00916.41
7.2.330.0180.00016.33
7.2.320.0100.01016.51
7.2.310.0100.01016.78
7.2.300.0070.01116.72
7.2.290.0060.01916.26
7.2.280.0140.00616.33
7.2.270.0060.01316.70
7.2.260.0170.00316.55
7.2.250.0110.00716.30
7.2.240.0090.00916.58
7.2.230.0130.00416.66
7.2.220.0120.00916.35
7.2.210.0070.01716.50
7.2.200.0030.02016.39
7.2.190.0170.00716.56
7.2.180.0130.00716.45
7.2.170.0150.00616.45
7.2.160.0110.01116.60
7.2.150.0060.01616.64
7.2.140.0100.01016.49
7.2.130.0090.00916.57
7.2.120.0090.00916.48
7.2.110.0060.01316.46
7.2.100.0140.00716.58
7.2.90.0100.01116.50
7.2.80.0160.00616.52
7.2.70.0070.01416.65
7.2.60.0110.00716.54
7.2.50.0180.00316.52
7.2.40.0760.00716.55
7.2.30.0170.00316.58
7.2.20.0200.00016.52
7.2.10.0150.00316.47
7.2.00.0180.00316.23

preferences:
55.41 ms | 1737 KiB | 5 Q