3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function pouet() { $main_category_currency = 1; $children = array( array('id_category'=>10), array('id_category'=>15), ); function map($child) { return $child['id_category']; } return array_unique(array_merge( array($main_category_currency), array_map("map",$children) )); } } var_dump(Test::pouet());

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.60.0090.00616.63
8.3.50.0140.00817.52
8.3.40.0070.00718.63
8.3.30.0090.00618.79
8.3.20.0040.00418.70
8.3.10.0050.00318.91
8.3.00.0000.00819.38
8.2.180.0150.00016.75
8.2.170.0070.00722.96
8.2.160.0070.00721.19
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00020.88
8.2.110.0030.00721.03
8.2.100.0110.00017.84
8.2.90.0030.00719.32
8.2.80.0040.00419.28
8.2.70.0080.00017.36
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0040.00418.16
8.2.20.0060.00319.51
8.2.10.0040.00417.63
8.2.00.0000.00717.79
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0030.00622.61
8.1.230.0040.00720.89
8.1.220.0050.00317.75
8.1.210.0070.00318.96
8.1.200.0030.00617.35
8.1.190.0040.00417.53
8.1.180.0030.00618.10
8.1.170.0000.00918.67
8.1.160.0050.00218.90
8.1.150.0040.00418.52
8.1.140.0000.00717.39
8.1.130.0030.00317.82
8.1.120.0040.00317.51
8.1.110.0000.00717.47
8.1.100.0000.00817.35
8.1.90.0080.00017.53
8.1.80.0040.00417.39
8.1.70.0030.00317.41
8.1.60.0040.00417.48
8.1.50.0030.00617.39
8.1.40.0000.00717.52
8.1.30.0030.00517.68
8.1.20.0000.00717.66
8.1.10.0000.00817.55
8.1.00.0070.00417.52
8.0.300.0030.00620.03
8.0.290.0020.00516.63
8.0.280.0070.00018.50
8.0.270.0030.00317.32
8.0.260.0030.00316.76
8.0.250.0070.00017.01
8.0.240.0040.00416.96
8.0.230.0000.00716.88
8.0.220.0070.00016.90
8.0.210.0030.00316.81
8.0.200.0040.00416.82
8.0.190.0040.00416.95
8.0.180.0040.00416.87
8.0.170.0000.00916.93
8.0.160.0040.00417.03
8.0.150.0060.00316.85
8.0.140.0030.00616.75
8.0.130.0000.00513.30
8.0.120.0050.00216.77
8.0.110.0040.00416.79
8.0.100.0040.00416.92
8.0.90.0000.00717.02
8.0.80.0110.01116.79
8.0.70.0050.00216.94
8.0.60.0080.00016.89
8.0.50.0040.00416.77
8.0.30.0180.00017.04
8.0.20.0110.00916.98
8.0.10.0000.00716.91
8.0.00.0040.01316.78
7.4.330.0050.00013.01
7.4.320.0000.00616.60
7.4.300.0050.00216.56
7.4.290.0020.00516.62
7.4.280.0030.00616.60
7.4.270.0000.00716.54
7.4.260.0060.00013.28
7.4.250.0000.00816.51
7.4.240.0060.00216.56
7.4.230.0000.00716.33
7.4.220.0160.00616.55
7.4.210.0070.00816.55
7.4.200.0030.00316.31
7.4.190.0070.00016.52
7.4.160.0130.01016.66
7.4.150.0130.00316.57
7.4.140.0050.01216.41
7.4.130.0080.00816.48
7.4.120.0110.00916.41
7.4.110.0100.01016.51
7.4.100.0090.00916.55
7.4.90.0130.01016.46
7.4.80.0060.00919.39
7.4.70.0120.00416.52
7.4.60.0030.01316.60
7.4.50.0000.01316.56
7.4.40.0090.00916.61
7.4.30.0080.00816.66
7.4.00.0060.00915.02
7.3.330.0000.00713.23
7.3.320.0000.00513.27
7.3.310.0000.00816.16
7.3.300.0070.00016.36
7.3.290.0030.01116.21
7.3.280.0090.00816.31
7.3.270.0090.00916.21
7.3.260.0140.00316.52
7.3.250.0050.01316.36
7.3.240.0070.01016.64
7.3.230.0060.01016.38
7.3.210.0160.00316.23
7.3.200.0070.01016.60
7.3.190.0090.01216.46
7.3.180.0060.01116.22
7.3.170.0060.00916.56
7.3.160.0080.01716.52
7.3.120.0070.01014.87
7.3.00.0100.00716.26
7.2.330.0100.00716.68
7.2.320.0100.00716.64
7.2.310.0100.01016.78
7.2.300.0070.01016.57
7.2.290.0030.01316.65
7.2.130.0070.01016.35
7.2.120.0080.00816.45
7.2.110.0090.00916.29
7.2.100.0090.00916.64
7.2.90.0140.00316.54
7.2.80.0130.00316.42
7.2.70.0140.00416.67
7.2.60.0090.00616.60
7.2.50.0090.00616.50
7.2.40.0120.00416.72
7.2.30.0090.00916.72
7.2.20.0130.00616.64
7.2.10.0100.00716.88
7.2.00.0180.00316.93
7.1.250.0090.00615.40
7.1.240.0100.01015.61
7.1.230.0030.01015.75
7.1.220.0090.00915.46
7.1.210.0090.00915.75
7.1.200.0060.00715.54
7.1.190.0130.00315.54
7.1.180.0100.01015.51
7.1.170.0110.00415.52
7.1.160.0130.00315.66
7.1.150.0090.00315.42
7.1.140.0030.00615.74
7.1.130.0100.01015.81
7.1.120.0100.00315.66
7.1.110.0160.00315.71
7.1.100.0090.00315.83
7.1.90.0120.00915.78
7.1.80.0120.00915.77
7.1.70.0090.00316.61
7.1.60.0060.01317.55
7.1.50.0140.01225.29
7.1.40.0070.01415.52
7.1.30.0150.00315.62
7.1.20.0090.00015.67
7.1.10.0070.01015.70
7.1.00.0090.04018.92
7.0.330.0120.00414.83
7.0.320.0070.00715.18
7.0.310.0090.00615.50
7.0.300.0110.00715.10
7.0.290.0070.00515.08
7.0.280.0120.00315.39
7.0.270.0130.00714.95
7.0.260.0040.00915.46
7.0.250.0110.00815.29
7.0.240.0120.00815.35
7.0.230.0200.00315.19
7.0.220.0180.00415.35
7.0.210.0150.00315.27
7.0.200.0090.00615.10
7.0.190.0060.01315.14
7.0.180.0110.01115.37
7.0.170.0150.00315.35
7.0.160.0060.00615.13
7.0.150.0130.00615.18
7.0.140.0120.03718.75
7.0.130.0120.00415.01
7.0.120.0060.02518.65
7.0.110.0130.00715.22
7.0.100.0140.00315.26
7.0.90.0100.01015.30
7.0.80.0130.00315.22
7.0.70.0130.00315.41
7.0.60.0110.02917.67
7.0.50.0100.02516.41
7.0.40.0150.03816.66
7.0.30.0060.03816.80
7.0.20.0060.04016.71
7.0.10.0060.03716.78
7.0.00.0110.03516.79
5.6.380.0100.00314.07
5.6.370.0030.00814.15
5.6.360.0120.00314.14
5.6.350.0000.01514.02
5.6.340.0030.00614.31
5.6.330.0070.01014.23
5.6.320.0040.00714.20
5.6.310.0080.00614.49
5.6.300.0000.01114.55
5.6.290.0000.01714.20
5.6.280.0060.01214.58
5.6.270.0040.01414.37
5.6.260.0060.00914.15
5.6.250.0030.00714.06
5.6.240.0040.00414.21
5.6.230.0040.01114.13
5.6.220.0100.00313.96
5.6.210.0070.04417.45
5.6.200.0050.02416.20
5.6.190.0070.03017.33
5.6.180.0080.02317.40
5.6.170.0080.02617.22
5.6.160.0050.02717.13
5.6.150.0100.02217.23
5.6.140.0090.02717.07
5.6.130.0050.04617.11
5.6.120.0030.02816.99
5.6.110.0080.03016.93
5.6.100.0050.03317.00
5.6.90.0100.04316.91
5.6.80.0090.03516.88
5.6.70.0020.04416.64
5.6.60.0060.02317.01
5.6.50.0100.03816.82
5.6.40.0020.03316.69
5.6.30.0040.02516.63
5.6.20.0070.04416.72
5.6.10.0030.04316.95
5.6.00.0080.03016.98
5.5.380.0100.00311.16
5.5.370.0060.00010.68
5.5.360.0060.00311.02
5.5.350.0030.04315.58
5.5.340.0120.03314.47
5.5.330.0060.03815.48
5.5.320.0050.04715.53
5.5.310.0090.03715.46
5.5.300.0020.04115.42
5.5.290.0020.04015.57
5.5.280.0080.03915.55
5.5.270.0070.04215.34
5.5.260.0020.02915.52
5.5.250.0040.04115.30
5.5.240.0070.02615.24
5.5.230.0060.03715.32
5.5.220.0020.02815.17
5.5.210.0070.03615.39
5.5.200.0080.04215.01
5.5.190.0090.03714.99
5.5.180.0050.04515.26
5.5.170.0090.00311.08
5.5.160.0070.02015.02
5.5.150.0060.04515.44
5.5.140.0100.03815.26
5.5.130.0040.02915.08
5.5.120.0020.02515.15
5.5.110.0020.02714.95
5.5.100.0080.04015.09
5.5.90.0080.02315.19
5.5.80.0050.04415.12
5.5.70.0050.03815.01
5.5.60.0130.03515.17
5.5.50.0080.04015.00
5.5.40.0070.03915.10
5.5.30.0090.03014.99
5.5.20.0120.03515.24
5.5.10.0110.02514.93
5.5.00.0040.03715.20
5.4.450.0090.03515.15
5.4.440.0030.02315.19
5.4.430.0030.03215.15
5.4.420.0060.02215.10
5.4.410.0020.03414.98
5.4.400.0060.04215.14
5.4.390.0050.04614.84
5.4.380.0060.02314.93
5.4.370.0100.03715.08
5.4.360.0050.02415.20
5.4.350.0060.03815.04
5.4.340.0030.04615.24
5.4.330.0090.00010.93
5.4.320.0020.03415.06
5.4.310.0070.03014.96
5.4.300.0070.04115.12
5.4.290.0070.03915.03
5.4.280.0020.04815.04
5.4.270.0060.02815.01
5.4.260.0050.02815.09
5.4.250.0050.03915.00
5.4.240.0150.02514.99
5.4.230.0070.03215.21
5.4.220.0110.03815.03
5.4.210.0080.02815.14
5.4.200.0070.02315.16
5.4.190.0090.03514.84
5.4.180.0050.02714.93
5.4.170.0050.04115.02
5.4.160.0090.03414.97
5.4.150.0140.02414.90
5.4.140.0110.02813.62
5.4.130.0110.02313.83
5.4.120.0110.03313.62
5.4.110.0130.03513.73
5.4.100.0050.04013.65
5.4.90.0110.04013.75
5.4.80.0130.03813.50
5.4.70.0110.03113.46
5.4.60.0070.03813.71
5.4.50.0050.04213.71
5.4.40.0050.04013.73
5.4.30.0050.02713.58
5.4.20.0080.03513.64
5.4.10.0080.03513.71
5.4.00.0080.02213.24
5.3.290.0050.02612.60
5.3.280.0080.03512.52
5.3.270.0070.03812.70
5.3.260.0050.02612.55
5.3.250.0120.03812.58
5.3.240.0060.02812.60
5.3.230.0050.02712.62
5.3.220.0030.04312.54
5.3.210.0080.04212.54
5.3.200.0070.03712.61
5.3.190.0070.03512.62
5.3.180.0050.02812.62
5.3.170.0030.04012.69
5.3.160.0050.03812.62
5.3.150.0060.03312.70
5.3.140.0000.04312.59
5.3.130.0030.02512.55
5.3.120.0060.04112.56
5.3.110.0050.04112.47
5.3.100.0080.03612.28
5.3.90.0120.03212.39
5.3.80.0050.03212.30
5.3.70.0080.03712.25
5.3.60.0100.02312.28
5.3.50.0020.04412.38
5.3.40.0030.04012.25
5.3.30.0080.03812.21
5.3.20.0060.02612.12
5.3.10.0050.04012.10
5.3.00.0080.03312.11
5.2.170.0080.02810.79
5.2.160.0080.03010.91
5.2.150.0040.02610.84
5.2.140.0070.03310.87
5.2.130.0070.02310.80
5.2.120.0020.02510.85
5.2.110.0110.03110.85
5.2.100.0040.03410.81
5.2.90.0050.01710.76
5.2.80.0050.02210.81
5.2.70.0060.02310.88
5.2.60.0050.03710.76
5.2.50.0120.03010.77
5.2.40.0090.03510.72
5.2.30.0120.03010.74
5.2.20.0140.01610.74
5.2.10.0050.02210.70
5.2.00.0090.03010.64
5.1.60.0030.02910.24
5.1.50.0050.02710.21
5.1.40.0050.02510.24
5.1.30.0110.01210.50
5.1.20.0080.02710.46
5.1.10.0050.03010.27
5.1.00.0080.02510.29
5.0.50.0070.0179.48
5.0.40.0070.0219.49
5.0.30.0030.0269.36
5.0.20.0040.0149.44
5.0.10.0020.0149.35
5.0.00.0020.0199.41
4.4.90.0030.0179.01
4.4.80.0060.0159.01
4.4.70.0030.0159.01
4.4.60.0040.0119.01
4.4.50.0040.0089.01
4.4.40.0050.0159.01
4.4.30.0030.0229.01
4.4.20.0020.0199.01
4.4.10.0020.0179.01
4.4.00.0020.0159.01
4.3.110.0000.0219.01
4.3.100.0040.0179.01
4.3.90.0040.0109.01
4.3.80.0020.0169.01
4.3.70.0020.0109.01
4.3.60.0010.0109.01
4.3.50.0020.0109.01
4.3.40.0030.0219.01
4.3.30.0050.0179.01
4.3.20.0020.0239.01
4.3.10.0030.0209.01
4.3.00.0030.0189.01

preferences:
47.85 ms | 401 KiB | 5 Q