3v4l.org

run code in 300+ PHP versions simultaneously
<?php $products = ['canvas']; $availableSizes = ['8x10', '10x10', '12x12']; $materials = ["matte", "luster"]; $colors = ['red', 'white', 'blue']; var_export( array_merge(...array_map( fn($product) => array_merge(...array_map( fn($size) => array_merge(...array_map( fn($material) => array_map( fn($color) => implode('_', [$product, $size, $material, $color]), $colors ), $materials )), $availableSizes )), $products )) );

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.0100.00621.86
8.5.00.0110.01020.04
8.4.160.0120.00921.43
8.4.150.0030.00014.05
8.4.140.0130.01217.69
8.4.130.0090.01217.89
8.4.120.0150.00620.64
8.4.110.0110.00620.37
8.4.100.0110.00917.50
8.4.90.0120.00820.66
8.4.80.0100.01118.86
8.4.70.0090.00918.98
8.4.60.0120.00822.14
8.4.50.0050.00420.15
8.4.40.0100.01019.43
8.4.30.0090.00920.73
8.4.20.0070.01418.00
8.4.10.0070.01022.12
8.3.290.0120.01220.72
8.3.280.0140.00618.43
8.3.270.0120.00816.66
8.3.260.0040.00416.86
8.3.250.0120.00718.70
8.3.240.0120.00819.05
8.3.230.0110.00816.53
8.3.220.0080.00920.71
8.3.210.0110.00816.70
8.3.200.0050.00416.64
8.3.190.0120.00516.98
8.3.180.0060.00418.87
8.3.170.0070.01017.29
8.3.160.0160.00316.67
8.3.150.0130.00716.43
8.3.140.0080.00018.70
8.3.130.0090.00016.45
8.3.120.0110.00718.86
8.3.110.0080.01120.94
8.3.100.0060.00324.06
8.3.90.0070.00726.77
8.3.80.0070.00316.75
8.3.70.0070.01116.58
8.3.60.0070.01018.52
8.3.50.0070.00720.07
8.3.40.0120.00320.26
8.3.30.0090.00618.44
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.300.0090.01322.25
8.2.290.0090.00417.25
8.2.280.0080.00718.14
8.2.270.0120.00616.50
8.2.260.0110.00717.20
8.2.250.0120.00316.74
8.2.240.0100.00018.86
8.2.230.0040.00422.58
8.2.220.0090.00037.54
8.2.210.0000.00826.77
8.2.200.0060.00616.50
8.2.190.0040.01216.58
8.2.180.0120.00325.92
8.2.170.0120.00319.13
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00421.04
8.2.110.0070.00320.52
8.2.100.0000.01117.97
8.2.90.0050.00517.88
8.2.80.0030.00518.78
8.2.70.0060.00317.63
8.2.60.0060.00318.03
8.2.50.0000.00818.07
8.2.40.0000.00819.57
8.2.30.0000.00818.08
8.2.20.0000.00719.35
8.2.10.0000.00718.13
8.2.00.0030.00519.20
8.1.340.0110.00917.61
8.1.330.0140.00516.25
8.1.320.0090.01023.70
8.1.310.0030.01516.94
8.1.300.0060.00316.06
8.1.290.0040.00418.88
8.1.280.0000.01425.92
8.1.270.0050.00324.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.90
8.1.230.0080.00420.99
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0000.01117.35
8.1.190.0030.00517.48
8.1.180.0030.00619.19
8.1.170.0000.00918.57
8.1.160.0080.00018.97
8.1.150.0000.00818.58
8.1.140.0030.00617.47
8.1.130.0030.00518.96
8.1.120.0040.00317.39
8.1.110.0080.00017.44
8.1.100.0120.00417.42
8.1.90.0070.01117.54
8.1.80.0140.00517.32
8.1.70.0070.00817.42
8.1.60.0100.01017.57
8.1.50.0130.00317.39
8.1.40.0100.00717.41
8.1.30.0150.00317.63
8.1.20.0120.00617.67
8.1.10.0160.00317.45
8.1.00.0120.00617.50
8.0.300.0030.00618.77
8.0.290.0030.00616.75
8.0.280.0070.00018.45
8.0.270.0040.00416.82
8.0.260.0030.00518.37
8.0.250.0020.00516.85
8.0.240.0090.00016.98
8.0.230.0100.00516.89
8.0.220.0050.01016.82
8.0.210.0080.00816.80
8.0.200.0100.00516.89
8.0.190.0030.01216.88
8.0.180.0130.00316.89
8.0.170.0060.01116.84
8.0.160.0120.00216.82
8.0.150.0150.00016.66
8.0.140.0090.00616.76
8.0.130.0140.00216.73
8.0.120.0050.01016.81
8.0.110.0100.00516.78
8.0.100.0050.01016.83
8.0.90.0080.00816.79
8.0.80.0000.01216.82
8.0.70.0060.00616.69
8.0.60.0080.00616.90
8.0.50.0070.00716.77
8.0.30.0120.00316.84
8.0.20.0120.00316.86
8.0.10.0130.00317.04
7.4.330.0050.00015.55
7.4.320.0030.00316.53
7.4.300.0110.00616.56
7.4.290.0110.00316.41
7.4.280.0110.00216.42
7.4.270.0050.00916.41
7.4.260.0110.00416.45
7.4.250.0160.00016.59
7.4.240.0110.00016.31
7.4.230.0070.00716.50
7.4.220.0120.00016.28
7.4.210.0070.00716.52
7.4.200.0060.00316.51
7.4.190.0100.00516.64
7.4.180.0130.00316.65
7.4.160.0100.00316.55
7.4.150.0040.00916.51
7.4.140.0070.00416.31
7.4.130.0070.00416.20
7.4.120.0100.00016.03
7.4.110.0070.00716.48
7.4.100.0060.00616.41
7.4.90.0070.00716.47
7.4.80.0080.00516.58
7.4.70.0080.00416.35
7.4.60.0080.00516.50
7.4.50.0030.01016.31
7.4.40.0160.00016.41
7.4.30.0130.00316.52
7.4.20.0120.00316.45
7.4.10.0110.00416.49
7.4.00.0120.00316.49

preferences:
31.77 ms | 403 KiB | 5 Q