3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'Colour' => [ 'Red' => 'Red', 'Blue' => 'Blue', ], 'Size' => [ 'Small' => 'Small', 'Medium' => 'Medium', 'Large' => 'Large', ], 'Brand' => [ 'Nike' => 'Nike', 'Adidas' => 'Adidas', ], ]; $combined = []; foreach ($data['Colour'] as $colour) { foreach ($data['Brand'] as $brand) { foreach ($data['Size'] as $size) { $combined[] = implode(' - ', [ $colour, $size, $brand ]); } } } var_dump($combined);

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.130.0040.00418.32
8.3.120.0100.01018.85
8.3.110.0080.01116.38
8.3.100.0060.00324.06
8.3.90.0040.01526.77
8.3.80.0000.00917.97
8.3.70.0130.00316.63
8.3.60.0180.00418.55
8.3.50.0100.00716.52
8.3.40.0130.00318.63
8.3.30.0120.00318.71
8.3.20.0040.00420.30
8.3.10.0000.00821.93
8.3.00.0000.00817.91
8.2.250.0170.00316.82
8.2.240.0040.00418.95
8.2.230.0000.01120.94
8.2.220.0030.00637.54
8.2.210.0090.00026.77
8.2.200.0040.00416.50
8.2.190.0070.01018.16
8.2.180.0140.00716.38
8.2.170.0110.00722.96
8.2.160.0070.00721.18
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.52
8.2.120.0030.00526.35
8.2.110.0060.00322.10
8.2.100.0060.00619.45
8.2.90.0030.00617.88
8.2.80.0040.00418.60
8.2.70.0060.00617.63
8.2.60.0080.00017.93
8.2.50.0000.00918.07
8.2.40.0040.00418.16
8.2.30.0000.00818.11
8.2.20.0040.00418.12
8.2.10.0000.00718.14
8.2.00.0040.00417.92
8.1.300.0070.01118.39
8.1.290.0000.00818.88
8.1.280.0120.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00620.73
8.1.230.0030.00917.82
8.1.220.0000.00717.75
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0090.00017.22
8.1.180.0040.00418.10
8.1.170.0060.00318.40
8.1.160.0020.00518.84
8.1.150.0000.00718.87
8.1.140.0040.00419.57
8.1.130.0000.00720.66
8.1.120.0040.00417.34
8.1.110.0000.00817.47
8.1.100.0000.00817.34
8.1.90.0040.00417.40
8.1.80.0000.00717.46
8.1.70.0000.00717.48
8.1.60.0060.00317.45
8.1.50.0040.00417.37
8.1.40.0000.00817.34
8.1.30.0000.00817.54
8.1.20.0000.00817.62
8.1.10.0000.00717.58
8.1.00.0000.00817.45
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.31
8.0.270.0000.00717.10
8.0.260.0000.00818.87
8.0.250.0040.00416.85
8.0.240.0040.00416.91
8.0.230.0030.00316.99
8.0.220.0020.00516.89
8.0.210.0000.00816.87
8.0.200.0030.00516.80
8.0.190.0040.00416.99
8.0.180.0070.00016.79
8.0.170.0030.00516.83
8.0.160.0030.00616.85
8.0.150.0070.00016.93
8.0.140.0000.00716.80
8.0.130.0060.00013.31
8.0.120.0040.00416.80
8.0.110.0000.00816.94
8.0.100.0050.00216.82
8.0.90.0000.00816.69
8.0.80.0080.00816.95
8.0.70.0040.00316.75
8.0.60.0050.00316.75
8.0.50.0040.00416.71
8.0.30.0150.01816.94
8.0.20.0120.00717.40
8.0.10.0040.00417.00
8.0.00.0090.00916.85
7.4.330.0000.00515.55
7.4.320.0030.00316.51
7.4.300.0030.00316.56
7.4.290.0000.01016.44
7.4.280.0000.00716.59
7.4.270.0080.00016.54
7.4.260.0050.00316.53
7.4.250.0000.00716.47
7.4.240.0000.00716.45
7.4.230.0000.00716.61
7.4.220.0060.01416.36
7.4.210.0100.01016.54
7.4.200.0040.00416.47
7.4.160.0110.00616.34
7.4.150.0120.00617.40
7.4.140.0130.00517.86
7.4.130.0150.00316.54
7.4.120.0130.00616.37
7.4.110.0130.01016.46
7.4.100.0150.00316.53
7.4.90.0140.00316.55
7.4.80.0080.01419.39
7.4.70.0060.01116.45
7.4.60.0120.00616.42
7.4.50.0060.01116.64
7.4.40.0120.00616.56
7.4.30.0060.01016.62
7.4.00.0090.00615.14
7.3.330.0080.00013.16
7.3.320.0000.00513.21
7.3.310.0000.00816.37
7.3.300.0000.00716.36
7.3.290.0080.00716.24
7.3.280.0090.00916.25
7.3.270.0110.00717.40
7.3.260.0170.00016.42
7.3.250.0120.01116.52
7.3.240.0110.00716.34
7.3.230.0090.00916.54
7.3.210.0070.01016.40
7.3.200.0080.00816.29
7.3.190.0080.01216.36
7.3.180.0130.00316.41
7.3.170.0110.00516.23
7.3.160.0040.01116.27
7.2.330.0120.00616.58
7.2.320.0120.00916.50
7.2.310.0070.01716.73
7.2.300.0090.01316.67
7.2.290.0110.00616.51
7.2.60.0060.00617.00
7.1.200.0060.00915.79
7.1.80.0340.02716.43
7.1.70.4920.01315.48
7.1.60.5070.01033.06
7.1.50.0290.01132.82
7.1.40.5370.01632.54
7.1.30.5820.01332.64
7.1.20.6580.02032.92
7.1.10.6100.01714.78
7.1.00.5510.00714.96
7.0.200.0100.01314.81
7.0.190.0240.01614.77
7.0.180.0030.01614.49
7.0.170.5900.01314.39
7.0.160.7330.00714.19
7.0.150.6450.00814.36
7.0.140.6130.01614.50
7.0.130.5880.01014.84
7.0.120.4990.01614.60
7.0.110.4410.01014.29
7.0.100.5330.01214.44
7.0.90.5320.01014.71
7.0.80.5190.01214.70
7.0.70.4900.01314.28
7.0.60.4900.01014.45
7.0.50.4140.01014.51
7.0.40.3840.01314.69
7.0.30.3740.01314.67
7.0.20.3720.01014.61
7.0.10.3590.00914.79
7.0.00.3610.01014.69

preferences:
56.79 ms | 403 KiB | 5 Q