3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cats = array( (object) array("term_id"=>"","name"=>"Film : FIILMTOFTWFUT : post-COLON2","slug" => "alphabetical-k-l-m-n-o ","term_group"=>5,"term_taxonomy_id"=>9,"taxonomy"=>"Myanmar","description"=>"69509","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=> "Country: Cambodia ","slug"=>"Media Relations","term_group"=>5,"term_taxonomy_id"=>7,"taxonomy"=>"Belgium","description"=>"14234","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Advertising","slug"=>"Quality Assurance","term_group"=>5,"term_taxonomy_id"=>1,"taxonomy"=>"Norfolk Island","description"=>"93236","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Finances","slug"=>"Legal Department","term_group"=>5,"term_taxonomy_id"=>5,"taxonomy"=>"Honduras","description"=>"74759","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Legal Department","slug"=>"Media Relations","term_group"=>1,"term_taxonomy_id"=>9,"taxonomy"=>"Namibia","description"=>"69625","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Sales and Marketing","slug"=>"Advertising","term_group"=>2,"term_taxonomy_id"=>4,"taxonomy"=>"Syria","description"=>"56469","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Finances","slug"=>"Media Relations","term_group"=>5,"term_taxonomy_id"=>8,"taxonomy"=>"Ethiopia","description"=>"74909","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Media Relations","slug"=>"Asset Management","term_group"=>5,"term_taxonomy_id"=>9,"taxonomy"=>"Indonesia","description"=>"17623","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Finances","slug"=>"Customer Relations","term_group"=>2,"term_taxonomy_id"=>3,"taxonomy"=>"Zimbabwe","description"=>"83249","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Sales and Marketing","slug" => "alphabetical-k-l-m-n-o ","term_group"=>1,"term_taxonomy_id"=>10,"taxonomy"=>"Faroe Islands","description"=>"03778","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Sales and Marketing","slug"=>"Sales and Marketing","term_group"=>7,"term_taxonomy_id"=>3,"taxonomy"=>"Latvia","description"=>"68525","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Accounting","slug"=>"Research and Development","term_group"=>9,"term_taxonomy_id"=>7,"taxonomy"=>"Bouvet Island","description"=>"18959","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Asset Management","slug"=>"Advertising","term_group"=>1,"term_taxonomy_id"=>9,"taxonomy"=>"Tajikistan","description"=>"94796","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Tech Support : arstatf","slug"=>"Accounting","term_group"=>5,"term_taxonomy_id"=>7,"taxonomy"=>"Côte D'Ivoire (Ivory Coast)","description"=>"24209","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Film : FIILMTOFTWFUT : post-COLON2","slug"=>"Human Resources","term_group"=>9,"term_taxonomy_id"=>3,"taxonomy"=>"Ukraine","description"=>"77647","parent"=>"","count"=>"1"), (object) array("term_id"=>"","name"=>"Media Relations","slug"=>"Customer Service","term_group"=>6,"term_taxonomy_id"=>7,"taxonomy"=>"Maldives","description"=>"97264","parent"=>"","count"=>"1") ); //list($k, $v) = //print_r(explode(' ',$cat->name,2)); //$result[$k]=$v; // $result[] = array_map(function($v){ // return explode(" ", $v); // }, $cat); function getStuff($o) { return get_object_vars($o); // $o[explode('',$o->name,2)[0]]= explode('',$o->name,2)[1]; } $a=array_walk($cats, 'getStuff'); print_r($a) ?>

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.40.0060.00918.79
8.3.30.0070.01118.96
8.3.20.0030.00618.70
8.3.10.0040.00421.90
8.3.00.0080.00019.14
8.2.170.0080.00818.90
8.2.160.0150.00022.96
8.2.150.0100.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.26
8.2.110.0030.00722.16
8.2.100.0100.00617.84
8.2.90.0040.00419.18
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0050.00218.04
8.2.20.0060.00317.88
8.2.10.0050.00218.04
8.2.00.0040.00417.97
8.1.270.0100.00320.25
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.64
8.1.230.0060.00618.92
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00317.25
8.1.190.0060.00317.22
8.1.180.0060.00318.10
8.1.170.0110.00018.41
8.1.160.0040.00421.99
8.1.150.0000.00718.89
8.1.140.0000.00817.52
8.1.130.0030.00317.94
8.1.120.0070.00017.46
8.1.110.0040.00417.42
8.1.100.0000.00717.32
8.1.90.0000.00717.48
8.1.80.0000.00717.42
8.1.70.0030.00317.49
8.1.60.0050.00317.61
8.1.50.0030.00517.61
8.1.40.0080.00017.56
8.1.30.0090.00017.70
8.1.20.0080.00017.67
8.1.10.0000.00717.50
8.1.00.0040.00417.38
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.45
8.0.270.0070.00017.28
8.0.260.0080.00017.29
8.0.250.0060.00317.00
8.0.240.0000.00717.02
8.0.230.0000.00717.01
8.0.220.0040.00416.91
8.0.210.0040.00416.97
8.0.200.0060.00316.94
8.0.190.0080.00016.89
8.0.180.0060.00316.90
8.0.170.0040.00417.02
8.0.160.0080.00017.05
8.0.150.0040.00416.99
8.0.140.0000.00716.96
8.0.130.0030.00313.45
8.0.120.0060.00316.88
8.0.110.0000.00816.99
8.0.100.0040.00416.89
8.0.90.0030.00317.04
8.0.80.0090.01216.97
8.0.70.0000.00716.79
8.0.60.0080.00016.91
8.0.50.0050.00317.05
8.0.30.0130.00817.14
8.0.20.0110.00717.40
8.0.10.0040.00416.93
8.0.00.0130.00616.88
7.4.330.0030.00315.03
7.4.320.0060.00016.64
7.4.300.0060.00316.50
7.4.290.0070.00016.64
7.4.280.0040.00416.53
7.4.270.0030.00316.56
7.4.260.0000.00816.40
7.4.250.0080.00016.51
7.4.240.0000.00816.57
7.4.230.0070.00016.61
7.4.220.0130.00716.64
7.4.210.0100.00616.60
7.4.200.0000.00716.47
7.4.160.0070.01116.29
7.4.150.0130.00317.40
7.4.140.0140.00817.86
7.4.130.0130.00816.56
7.4.120.0090.00916.42
7.4.110.0060.01216.50
7.4.100.0230.00016.46
7.4.90.0110.00816.38
7.4.80.0070.01019.39
7.4.70.0100.00716.48
7.4.60.0070.01016.62
7.4.50.0000.00816.43
7.4.40.0090.01916.37
7.4.30.0110.00616.71
7.4.10.0060.01014.87
7.4.00.0030.01214.83
7.3.330.0030.00313.30
7.3.320.0000.00513.13
7.3.310.0000.00716.30
7.3.300.0030.00316.28
7.3.290.0060.00316.26
7.3.280.0100.00616.30
7.3.270.0090.00917.40
7.3.260.0040.01316.20
7.3.250.0110.01016.31
7.3.240.0070.01116.53
7.3.230.0000.01716.39
7.3.210.0030.01316.50
7.3.200.0170.00819.39
7.3.190.0080.00816.31
7.3.180.0110.00716.22
7.3.170.0140.00316.47
7.3.160.0120.00616.42
7.3.130.0130.00314.72
7.3.120.0100.00714.98
7.3.110.0060.00914.73
7.3.100.0100.00014.84
7.3.90.0090.00615.02
7.3.80.0090.00015.07
7.3.70.0090.00614.91
7.3.60.0080.00714.61
7.3.50.0090.00614.87
7.3.40.0000.01014.77
7.3.30.0090.00614.62
7.3.20.0040.01116.59
7.3.10.0000.01016.36
7.3.00.0000.01216.54
7.2.330.0120.00616.81
7.2.320.0060.01116.50
7.2.310.0090.01316.81
7.2.300.0070.01716.56
7.2.290.0060.01216.55
7.2.260.0070.01115.21
7.2.250.0110.00715.00
7.2.240.0060.00915.03
7.2.230.0060.00315.07
7.2.220.0070.01015.17
7.2.210.0080.00815.08
7.2.200.0090.00315.04
7.2.190.0060.01315.06
7.2.180.0070.01314.77
7.2.170.0000.01515.18
7.2.160.0120.00315.21
7.2.150.0040.01216.89
7.2.140.0130.00316.98
7.2.130.0130.00316.88
7.2.120.0000.01516.71
7.2.110.0070.00317.00
7.2.100.0070.01016.60
7.2.90.0030.00716.85
7.2.80.0040.00817.11
7.2.70.0090.00616.89
7.2.60.0100.00516.99
7.2.50.0000.01117.03
7.2.40.0030.01416.91
7.2.30.0090.00617.11
7.2.20.0040.00716.62
7.2.10.0070.00716.71
7.2.00.0070.00717.92
7.1.330.0000.01315.66
7.1.320.0140.00316.00
7.1.310.0110.00315.81
7.1.300.0090.00615.84
7.1.290.0060.01215.76
7.1.280.0000.01315.94
7.1.270.0030.01015.56
7.1.260.0060.00915.63
7.1.250.0040.00815.80
7.1.240.0030.01315.74
7.1.230.0070.01015.74
7.1.220.0000.01515.41
7.1.210.0060.00615.51
7.1.200.0030.00715.45
7.1.190.0090.00615.68
7.1.180.0040.01115.60
7.1.170.0000.00915.70
7.1.160.0030.01015.70
7.1.150.0000.01015.76
7.1.140.0070.01015.72
7.1.130.0030.00915.70
7.1.120.0120.00015.54
7.1.110.0040.01115.81
7.1.100.0050.00816.76
7.1.90.0030.01015.78
7.1.80.0060.00615.64
7.1.70.0020.01116.45
7.1.60.0080.00917.69
7.1.50.0140.00516.18
7.1.40.0030.00715.48
7.1.30.0070.00715.73
7.1.20.0000.01515.63
7.1.10.0000.01315.71
7.1.00.0070.03818.97
7.0.330.0120.00415.50
7.0.320.0110.00015.30
7.0.310.0090.00615.28
7.0.300.0000.00815.23
7.0.290.0040.00415.50
7.0.280.0070.00715.47
7.0.270.0040.00715.13
7.0.260.0030.00915.17
7.0.250.0070.00415.38
7.0.240.0030.00915.27
7.0.230.0030.01015.47
7.0.220.0070.00715.56
7.0.210.0100.00315.39
7.0.200.0080.00316.12
7.0.190.0000.01315.48
7.0.180.0000.01015.41
7.0.170.0000.01315.10
7.0.160.0000.00815.23
7.0.150.0030.01015.29
7.0.140.0000.00815.16
7.0.130.0000.00815.48
7.0.120.0000.00815.46
7.0.110.0080.00415.13
7.0.100.0100.00315.11
7.0.90.0030.01315.44
7.0.80.0060.00315.54
7.0.70.0000.01415.22
7.0.60.0030.04117.46
7.0.50.0090.02116.55
7.0.40.0030.03116.69
7.0.30.0200.03416.86
7.0.20.0180.04516.84
7.0.10.0050.05016.67
7.0.00.0080.04316.88
5.6.400.0040.01114.32
5.6.390.0040.01113.98
5.6.380.0090.00314.32
5.6.370.0060.00614.41
5.6.360.0000.01814.65
5.6.350.0060.00914.46
5.6.340.0030.00614.16
5.6.330.0070.00414.21
5.6.320.0070.00714.41
5.6.310.0030.00614.21
5.6.300.0000.00914.29
5.6.290.0000.01414.29
5.6.280.0080.03817.60
5.6.270.0060.00314.18
5.6.260.0080.00814.20
5.6.250.0110.00314.34
5.6.240.0000.01314.23
5.6.230.0000.01114.39
5.6.220.0000.01114.45
5.6.210.0150.04017.32
5.6.200.0080.04016.35
5.6.190.0080.02317.32
5.6.180.0150.04217.52
5.6.170.0180.04017.54
5.6.160.0080.04617.57
5.6.150.0080.03616.34
5.6.140.0030.03116.20
5.6.130.0080.04816.29
5.6.120.0120.03817.50
5.6.110.0120.04217.74
5.6.100.0080.04517.54
5.6.90.0050.02817.54
5.6.80.0070.04017.44
5.6.70.0030.00614.12
5.6.60.0060.01013.96
5.6.50.0040.01514.22
5.6.40.0060.00614.36
5.6.30.0090.00914.14
5.6.20.0040.00714.38
5.6.10.0060.00914.08
5.6.00.0070.00714.17
5.5.380.0000.01314.28
5.5.370.0060.00313.98
5.5.360.0140.00014.55
5.5.350.0070.03517.31
5.5.340.0100.03216.06
5.5.330.0060.02517.41
5.5.320.0090.04017.29
5.5.310.0120.02217.14
5.5.300.0050.04316.09
5.5.290.0030.02716.35
5.5.280.0120.04017.68
5.5.270.0050.02717.49
5.5.260.0130.04417.41
5.5.250.0050.04517.50
5.5.240.0070.03517.44
5.5.230.0060.00914.27
5.5.220.0000.01914.36
5.5.210.0060.00914.33
5.5.200.0040.00714.07
5.5.190.0090.00914.24
5.5.180.0000.01814.38
5.5.170.0070.00714.23
5.5.160.0060.00614.27
5.5.150.0080.00313.94
5.5.140.0040.00814.13
5.5.130.0000.01113.98
5.5.120.0080.00014.22
5.5.110.0060.00614.41
5.5.100.0060.00614.36
5.5.90.0000.01114.20
5.5.80.0080.00314.24
5.5.70.0060.00614.05
5.5.60.0100.01014.26
5.5.50.0030.01014.04
5.5.40.0070.00314.27
5.5.30.0040.01114.18
5.5.20.0030.00614.02
5.5.10.0000.00914.30
5.5.00.0070.00714.09
5.4.450.0120.02415.87
5.4.440.0120.02815.82
5.4.430.0160.03015.85
5.4.420.0080.02615.77
5.4.410.0080.02515.71
5.4.400.0080.02215.74
5.4.390.0100.02415.66
5.4.380.0100.02715.64
5.4.370.0130.01815.66
5.4.360.0130.02315.60
5.4.350.0150.02015.55
5.4.340.0080.02715.70
5.4.330.0060.00312.24
5.4.320.0110.02315.71
5.4.310.0100.02415.66
5.4.300.0070.02815.71
5.4.290.0170.02115.77
5.4.280.0100.02315.73
5.4.270.0130.02015.68
5.4.260.0080.02415.54
5.4.250.0100.02215.66
5.4.240.0130.02215.68
5.4.230.0140.01915.53
5.4.220.0130.04015.72
5.4.210.0130.02415.63
5.4.200.0110.02615.72
5.4.190.0100.03015.53
5.4.180.0130.01815.74
5.4.170.0100.02515.56
5.4.160.0120.03115.68
5.4.150.0130.02015.71
5.4.140.0180.01814.32
5.4.130.0100.02914.37
5.4.120.0120.01814.32
5.4.110.0130.02014.42
5.4.100.0050.02714.33
5.4.90.0120.02014.41
5.4.80.0170.03714.32
5.4.70.0160.02814.42
5.4.60.0180.02314.41
5.4.50.0070.02714.33
5.4.40.0160.03814.31
5.4.30.0130.01814.42
5.4.20.0130.03214.35
5.4.10.0080.02314.36
5.4.00.0100.02214.20
5.3.290.0170.06314.86
5.3.280.0170.05714.56
5.3.270.0100.04314.73
5.3.260.0100.04314.80
5.3.250.0270.03714.63
5.3.240.0200.04014.57
5.3.230.0100.05314.63
5.3.220.0230.06714.53
5.3.210.0330.03014.68
5.3.200.0230.07014.62
5.3.190.0230.07714.54
5.3.180.0200.05014.69
5.3.170.0200.06714.61
5.3.160.0130.04314.67
5.3.150.0270.05314.53
5.3.140.0230.07314.69
5.3.130.0170.05314.57
5.3.120.0130.05314.52
5.3.110.0200.05314.61
5.3.100.0270.07014.01
5.3.90.0300.03013.98
5.3.80.0230.04013.98
5.3.70.0130.05013.96
5.3.60.0130.04714.05
5.3.50.0200.05013.90
5.3.40.0200.04314.02
5.3.30.0200.03313.93
5.3.20.0170.03713.65
5.3.10.0270.06313.68
5.3.00.0170.04013.70
5.2.170.0170.03711.74
5.2.160.0200.05011.74
5.2.150.0170.04011.74
5.2.140.0070.04311.74
5.2.130.0130.03711.74
5.2.120.0200.06011.74
5.2.110.0130.06311.74
5.2.100.0200.04311.74
5.2.90.0200.05711.74
5.2.80.0170.04011.74
5.2.70.0200.03011.74
5.2.60.0100.04011.74
5.2.50.0170.05011.74
5.2.40.0200.04311.74
5.2.30.0070.03711.74
5.2.20.0130.02711.74
5.2.10.0130.05311.74
5.2.00.0170.03711.74
5.1.60.0130.02711.74
5.1.50.0230.04311.74
5.1.40.0270.03311.74
5.1.30.0200.03311.74
5.1.20.0130.03311.74
5.1.10.0330.04711.74
5.1.00.0200.03011.74
5.0.50.0070.02311.74
5.0.40.0070.02011.74
5.0.30.0170.05711.74
5.0.20.0070.04711.74
5.0.10.0100.04711.74
5.0.00.0100.05011.74
4.4.90.0100.02011.74
4.4.80.0030.03011.74
4.4.70.0130.01311.74
4.4.60.0130.01311.74
4.4.50.0100.03711.74
4.4.40.0070.02711.74
4.4.30.0100.01711.74
4.4.20.0100.01711.74
4.4.10.0100.03011.74
4.4.00.0100.04711.74
4.3.110.0070.02311.74
4.3.100.0170.01711.74
4.3.90.0130.02311.74
4.3.80.0100.03311.74
4.3.70.0100.03011.74
4.3.60.0100.02011.74
4.3.50.0130.02711.74
4.3.40.0070.04311.74
4.3.30.0030.03311.74
4.3.20.0030.02311.74
4.3.10.0070.03711.74
4.3.00.0000.04011.74

preferences:
52.02 ms | 400 KiB | 5 Q