3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( "action: Added; amount: 1; code: RNA1; name: Mens Organic T-shirt; colour: White; size: XL", "action: Subtracted; amount: 7; code: RNC1; name: Kids Basic T-shirt; colour: Denim Blue; size: 3-4y", "action: Added; amount: 20; code: RNV1; name: Gift Voucher; style: Mens; value: £20", ); $result = array_map(function($line) { return array_combine(...array_map(null, ...array_chunk(preg_split('/[:;]\s+/', $line), 2))); }, $arr); print_r($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.4.10.0040.00421.25
8.3.140.0070.01118.64
8.3.130.0050.00318.70
8.3.120.0030.00720.66
8.3.110.0060.00320.94
8.3.100.0070.00318.50
8.3.90.0110.00426.77
8.3.80.0080.00417.00
8.3.70.0070.00716.86
8.3.60.0120.00317.00
8.3.50.0090.01023.61
8.3.40.0110.00421.00
8.3.30.0080.00818.68
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0000.01026.16
8.2.260.0140.00418.81
8.2.250.0050.00316.86
8.2.240.0040.00417.07
8.2.230.0090.00622.58
8.2.220.0030.01624.06
8.2.210.0090.00926.77
8.2.200.0090.00318.64
8.2.190.0080.00818.66
8.2.180.0160.00325.92
8.2.170.0110.00419.26
8.2.160.0130.00722.96
8.2.150.0050.00325.66
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0040.00419.83
8.2.110.0030.00622.43
8.2.100.0040.00818.16
8.2.90.0060.00318.00
8.2.80.0040.00418.93
8.2.70.0040.00417.75
8.2.60.0000.00817.75
8.2.50.0050.00317.88
8.2.40.0000.00819.95
8.2.30.0080.00018.16
8.2.20.0040.00418.21
8.2.10.0040.00419.46
8.2.00.0000.00819.32
8.1.310.0140.00320.12
8.1.300.0030.00616.55
8.1.290.0040.00830.84
8.1.280.0120.00325.92
8.1.270.0000.00923.99
8.1.260.0040.00426.35
8.1.250.0100.00328.09
8.1.240.0090.00019.04
8.1.230.0000.01117.77
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0040.00417.65
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0030.00618.91
8.1.160.0040.00419.06
8.1.150.0050.00219.04
8.1.140.0040.00419.07
8.1.130.0000.00717.68
8.1.120.0030.00617.63
8.1.110.0040.00417.59
8.1.100.0040.00417.48
8.1.90.0000.00817.57
8.1.80.0080.00317.63
8.1.70.0050.00217.53
8.1.60.0000.00917.65
8.1.50.0030.00517.62
8.1.40.0060.00317.68
8.1.30.0000.00817.71
8.1.20.0050.00517.74
8.1.10.0040.00417.48
8.1.00.0050.00317.59
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0030.00318.41
8.0.270.0000.00717.98
8.0.260.0070.00016.90
8.0.250.0030.00317.05
8.0.240.0040.00417.04
8.0.230.0000.00717.01
8.0.220.0050.00316.91
8.0.210.0040.00416.96
8.0.200.0000.00617.11
8.0.190.0030.00516.98
8.0.180.0070.00017.07
8.0.170.0030.00617.05
8.0.160.0040.00316.94
8.0.150.0040.00417.03
8.0.140.0000.00817.01
8.0.130.0030.00313.48
8.0.120.0070.00017.00
8.0.110.0040.00416.98
8.0.100.0000.00717.15
8.0.90.0000.00717.17
8.0.80.0100.00617.05
8.0.70.0080.00017.09
8.0.60.0040.00417.10
8.0.50.0040.00417.06
8.0.30.0100.00717.33
8.0.20.0090.00917.10
8.0.10.0030.00517.28
8.0.00.0090.01416.97
7.4.330.0020.00215.55
7.4.320.0000.00616.89
7.4.300.0000.00616.87
7.4.290.0030.00616.88
7.4.280.0000.00816.73
7.4.270.0040.00416.89
7.4.260.0000.00613.51
7.4.250.0030.00316.79
7.4.240.0030.00616.80
7.4.230.0000.00716.59
7.4.220.0040.00316.82
7.4.210.0070.00816.91
7.4.200.0040.00416.68
7.4.130.0120.00616.79
7.4.120.0130.01016.77
7.4.110.0180.00016.84
7.4.100.0100.01416.60
7.4.90.0000.02016.90
7.4.80.0100.00716.59
7.4.70.0080.01216.70
7.4.60.0120.00616.52
7.4.50.0070.01016.62
7.4.40.0180.00716.37
7.4.30.0090.00916.54
7.4.20.0090.00916.43
7.4.10.0140.00316.80
7.4.00.0090.00916.68
7.3.330.0050.00216.29
7.3.320.0000.00613.25
7.3.310.0030.00316.44
7.3.300.0000.00716.44
7.3.290.0070.01016.44
7.3.260.0000.01816.32
7.3.230.0080.00816.36
7.3.220.0040.01516.44
7.3.210.0100.01016.45
7.3.200.0000.01816.47
7.3.190.0110.00716.45
7.3.180.0130.00416.57
7.3.170.0070.01116.62
7.3.160.0120.00616.55
7.3.150.0060.01216.73
7.3.140.0140.00716.37
7.3.130.0100.00716.46
7.3.120.0060.01216.70
7.3.110.0090.00916.50
7.3.100.0130.01016.56
7.3.90.0150.00316.40
7.3.80.0100.00716.65
7.3.70.0120.00616.43
7.3.60.0060.00916.28
7.3.50.0030.01416.54
7.3.40.0090.01116.47
7.3.30.0130.00316.50
7.3.20.0070.01016.66
7.3.10.0100.00716.70
7.3.00.0120.00916.41
7.2.330.0100.01616.70
7.2.320.0060.01216.73
7.2.310.0060.01216.72
7.2.300.0090.02016.66
7.2.290.0040.01516.66
7.2.280.0060.01216.65
7.2.270.0050.01316.72
7.2.260.0060.01216.75
7.2.250.0120.00916.60
7.2.240.0160.00316.70
7.2.230.0120.01216.68
7.2.220.0140.00316.68
7.2.210.0070.01116.74
7.2.200.0070.01116.60
7.2.190.0100.00716.93
7.2.180.0100.00716.70
7.2.170.0120.00916.73
7.2.160.0090.00916.84
7.2.150.0090.00916.60
7.2.140.0090.00916.84
7.2.130.0190.00016.87
7.2.120.0160.00616.72
7.2.110.0090.00916.84
7.2.100.0060.01216.73
7.2.90.0150.00316.64
7.2.80.0440.01016.75
7.2.70.0090.00916.78
7.2.60.0090.00916.75
7.2.50.0130.00716.78
7.2.40.0040.01416.77
7.2.30.0150.01116.81
7.2.20.0100.01116.68
7.2.10.0060.01416.82
7.2.00.0180.00616.76

preferences:
67.2 ms | 403 KiB | 5 Q