3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static test() { $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::test());

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)
5.4.230.0120.04212.38
5.4.220.0120.04212.38
5.4.210.0120.04112.38
5.4.200.0100.04212.38
5.4.190.0170.04912.38
5.4.180.0120.04012.38
5.4.170.0130.04112.39
5.4.160.0110.03912.38
5.4.150.0110.04112.38
5.4.140.0120.03912.07
5.4.130.0110.03912.05
5.4.120.0110.03812.02
5.4.110.0170.06212.01
5.4.100.0120.03812.01
5.4.90.0110.03912.01
5.4.80.0100.04212.01
5.4.70.0130.03812.01
5.4.60.0120.03812.01
5.4.50.0110.03912.01
5.4.40.0110.03911.99
5.4.30.0110.04211.99
5.4.20.0290.06111.99
5.4.10.0120.04211.99
5.4.00.0210.06411.48
5.3.280.0180.04312.71
5.3.270.0150.04912.72
5.3.260.0110.05012.72
5.3.250.0120.04312.72
5.3.240.0210.06512.72
5.3.230.0140.04512.71
5.3.220.0160.04412.68
5.3.210.0130.04512.68
5.3.200.0180.04312.68
5.3.190.0220.05412.68
5.3.180.0150.04512.67
5.3.170.0140.04912.67
5.3.160.0090.04512.67
5.3.150.0160.03912.67
5.3.140.0140.03712.66
5.3.130.0120.04212.66
5.3.120.0110.04212.66
5.3.110.0090.04512.66
5.3.100.0110.04112.12
5.3.90.0150.03612.09
5.3.80.0130.03912.08
5.3.70.0190.05012.08
5.3.60.0100.04112.07
5.3.50.0140.03812.01
5.3.40.0120.04012.01
5.3.30.0120.03811.97
5.3.20.0190.06111.74
5.3.10.0090.04111.71
5.3.00.0090.04311.69

preferences:
139.21 ms | 1394 KiB | 7 Q