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.60.0110.00716.60
8.3.50.0110.00622.10
8.3.40.0090.00618.84
8.3.30.0110.00719.05
8.3.20.0060.00318.60
8.3.10.0090.00021.93
8.3.00.0050.00219.04
8.2.180.0090.00918.54
8.2.170.0150.00018.79
8.2.160.0080.00622.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00322.32
8.2.110.0060.00622.29
8.2.100.0040.00819.51
8.2.90.0030.00519.05
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0000.00917.80
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0000.00818.09
8.2.20.0050.00317.78
8.2.10.0050.00318.15
8.2.00.0050.00319.75
8.1.280.0120.00325.92
8.1.270.0060.00322.01
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.96
8.1.230.0110.00019.09
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00517.25
8.1.180.0040.00418.10
8.1.170.0070.00318.56
8.1.160.0030.00521.98
8.1.150.0050.00218.81
8.1.140.0030.00517.56
8.1.130.0000.00817.82
8.1.120.0050.00217.42
8.1.110.0000.00817.51
8.1.100.0000.00717.53
8.1.90.0070.00017.39
8.1.80.0030.00317.49
8.1.70.0000.00717.37
8.1.60.0030.00617.55
8.1.50.0030.00617.54
8.1.40.0080.00017.55
8.1.30.0080.00017.66
8.1.20.0000.00817.61
8.1.10.0040.00417.50
8.1.00.0000.00817.39
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.38
8.0.270.0030.00317.21
8.0.260.0030.00317.20
8.0.250.0080.00017.01
8.0.240.0000.00817.05
8.0.230.0000.00716.96
8.0.220.0050.00216.96
8.0.210.0000.00716.98
8.0.200.0040.00417.07
8.0.190.0040.00417.05
8.0.180.0060.00617.04
8.0.170.0040.00416.90
8.0.160.0050.00317.06
8.0.150.0000.00716.84
8.0.140.0050.00216.95
8.0.130.0050.00013.46
8.0.120.0000.00917.00
8.0.110.0000.00717.00
8.0.100.0000.00716.99
8.0.90.0080.00016.91
8.0.80.0120.00916.96
8.0.70.0080.00016.89
8.0.60.0050.00216.93
8.0.50.0040.00416.89
8.0.30.0080.01117.13
8.0.20.0130.00817.40
8.0.10.0070.00017.05
8.0.00.0080.01016.91
7.4.330.0030.00315.03
7.4.320.0000.00616.62
7.4.300.0030.00316.62
7.4.290.0000.00716.59
7.4.280.0050.00216.39
7.4.270.0030.00316.45
7.4.260.0000.00716.45
7.4.250.0000.00816.57
7.4.240.0020.00616.57
7.4.230.0030.00316.67
7.4.220.0110.01116.73
7.4.210.0110.00516.56
7.4.200.0000.00716.55
7.4.160.0060.00916.34
7.4.150.0120.00617.40
7.4.140.0100.01317.86
7.4.130.0090.01216.66
7.4.120.0160.00416.58
7.4.110.0110.00816.59
7.4.100.0110.01116.52
7.4.90.0040.01916.38
7.4.80.0110.00919.39
7.4.70.0120.00816.60
7.4.60.0100.00616.53
7.4.50.0050.00016.54
7.4.40.0140.01016.52
7.4.30.0100.00716.42
7.4.00.0030.01215.29
7.3.330.0040.00413.32
7.3.320.0030.00313.37
7.3.310.0030.00316.21
7.3.300.0030.00516.39
7.3.290.0070.00016.35
7.3.280.0080.01116.29
7.3.270.0180.00017.40
7.3.260.0080.01516.26
7.3.250.0050.01116.38
7.3.240.0120.00616.61
7.3.230.0080.01116.39
7.3.210.0070.01116.70
7.3.200.0180.00619.39
7.3.190.0090.00616.61
7.3.180.0140.00316.43
7.3.170.0030.01316.66
7.3.160.0040.01516.30
7.3.120.0120.00516.08
7.3.110.0090.00715.93
7.3.100.0080.00515.91
7.3.90.0090.00615.91
7.3.80.0020.01215.97
7.3.70.0060.01015.88
7.3.60.0090.00415.88
7.3.50.0050.00716.00
7.3.40.0060.01015.74
7.3.30.0070.00915.92
7.3.20.0030.01216.92
7.3.10.0050.00816.85
7.3.00.0060.01216.81
7.2.330.0120.00616.37
7.2.320.0090.00916.71
7.2.310.0120.00816.63
7.2.300.0170.00816.77
7.2.290.0080.00916.47
7.2.240.0080.00815.98
7.2.230.0050.01016.06
7.2.220.0030.01316.21
7.2.210.0040.00916.02
7.2.200.0030.01216.16
7.2.190.0050.01116.06
7.2.180.0030.01316.14
7.2.170.0030.01116.10
7.2.160.0050.01316.11
7.2.150.0050.01016.90
7.2.140.0030.01316.82
7.2.130.0030.01017.00
7.2.120.0020.01116.90
7.2.110.0070.00916.95
7.2.100.0110.00517.06
7.2.90.0030.01117.04
7.2.80.0070.00816.91
7.2.70.0070.00916.96
7.2.60.0120.00517.09
7.2.50.0050.01017.02
7.2.40.0110.00516.98
7.2.30.0100.00816.88
7.2.20.0090.00917.01
7.2.10.0050.01316.98
7.2.00.0060.00817.59
7.1.330.0030.01016.43
7.1.320.0040.01116.48
7.1.310.0070.00716.39
7.1.300.0050.00716.39
7.1.290.0000.01016.39
7.1.280.0020.01016.24
7.1.270.0060.00616.41
7.1.260.0110.00516.40
7.1.250.0110.00616.40
7.1.100.0110.00617.87
7.1.70.0000.00817.14
7.1.60.0100.01019.48
7.1.50.0090.01516.51
7.1.00.0000.08022.44
7.0.200.0040.00416.72
7.0.60.0170.07719.90
7.0.50.0100.07717.91
7.0.40.0030.05320.10
7.0.30.0300.05320.26
7.0.20.0130.04720.10
7.0.10.0100.07020.16
7.0.00.0070.07320.21
5.6.280.0030.07321.11
5.6.210.0130.07720.64
5.6.200.0030.04318.26
5.6.190.0100.06320.51
5.6.180.0170.05320.48
5.6.170.0130.06020.40
5.6.160.0030.04720.54
5.6.150.0030.05318.23
5.6.140.0100.05718.22
5.6.130.0070.08718.23
5.6.120.0030.05321.06
5.6.110.0070.09021.15
5.6.100.0130.05721.00
5.6.90.0030.06320.94
5.6.80.0130.06320.45
5.5.350.0030.08020.46
5.5.340.0100.06318.02
5.5.330.0070.05320.27
5.5.320.0070.05320.34
5.5.310.0130.05020.34
5.5.300.0130.07717.94
5.5.290.0070.05318.02
5.5.280.0100.08020.94
5.5.270.0100.05320.79
5.5.260.0100.04320.90
5.5.250.0000.07720.66
5.5.240.0000.06720.39
5.4.450.0700.04019.32
5.4.440.0700.05319.45
5.4.430.0730.06019.63
5.4.420.0030.06019.38
5.4.410.0170.04719.35
5.4.400.0100.05019.08
5.4.390.0130.05019.05
5.4.380.0100.05319.06
5.4.370.0170.06319.12
5.4.360.0200.04019.21
5.4.350.0170.04719.24
5.4.340.0070.05319.11
5.4.320.0130.05319.15
5.4.310.0100.05019.16
5.4.300.0100.05719.24
5.4.290.0100.05019.02
5.4.280.0130.04719.12
5.4.270.0070.05319.05
5.4.260.0170.04318.98
5.4.250.0070.05719.08
5.4.240.0070.05718.98
5.4.230.0130.05719.11
5.4.220.0070.05719.26
5.4.210.0100.05319.25
5.4.200.0070.05317.07
5.4.190.0070.05319.19
5.4.180.0200.04319.03
5.4.170.0070.05719.23
5.4.160.0030.06019.22
5.4.150.0170.06719.09
5.4.140.0130.04716.53
5.4.130.0070.05016.49
5.4.120.0030.05716.53
5.4.110.0030.05316.71
5.4.100.0170.04316.59
5.4.90.0200.06316.52
5.4.80.0100.05016.46
5.4.70.0100.05016.69
5.4.60.0030.05716.28
5.4.50.0170.06316.60
5.4.40.0100.05716.69
5.4.30.0070.05016.59
5.4.20.0070.05316.68
5.4.10.0130.04316.70
5.4.00.0130.05016.04
5.3.290.0100.05314.86
5.3.280.0100.05014.59
5.3.270.0070.05714.55
5.3.260.0170.05714.56
5.3.250.0030.05714.48
5.3.240.0170.04314.78
5.3.230.0070.06014.63
5.3.220.0070.05314.45
5.3.210.0100.05314.61
5.3.200.0100.04714.55
5.3.190.0100.05314.66
5.3.180.0130.04714.50
5.3.170.0130.04714.63
5.3.160.0070.05314.41
5.3.150.0100.05314.50
5.3.140.0100.05014.75
5.3.130.0100.05714.64
5.3.120.0130.05014.73
5.3.110.0070.05714.49
5.3.100.0170.04713.97
5.3.90.0130.04714.10
5.3.80.0030.05714.12
5.3.70.0100.05314.05
5.3.60.0170.05013.93
5.3.50.0130.05014.14
5.3.40.0100.04713.88
5.3.30.0130.04313.92
5.3.20.0070.05013.73
5.3.10.0030.06013.64
5.3.00.0100.05013.57
5.2.170.0070.05311.04
5.2.160.0000.04711.18
5.2.150.0130.03311.33
5.2.140.0030.04711.05
5.2.130.0130.04010.99
5.2.120.0070.04011.11
5.2.110.0070.04310.99
5.2.100.0100.03711.11
5.2.90.0070.04711.25
5.2.80.0030.04711.20
5.2.70.0100.03711.13
5.2.60.0070.04311.06
5.2.50.0030.04711.01
5.2.40.0030.04311.03
5.2.30.0030.04311.06
5.2.20.0100.03711.01
5.2.10.0030.04011.04
5.2.00.0100.03710.86
5.1.60.0030.0379.97
5.1.50.0030.0379.95
5.1.40.0100.03010.16
5.1.30.0100.03310.40
5.1.20.0070.03710.44
5.1.10.0070.03310.21
5.1.00.0070.03310.02
5.0.50.0000.0338.50
5.0.40.0030.0338.44
5.0.30.0100.0408.31
5.0.20.0030.0278.08
5.0.10.0130.0178.29
5.0.00.0070.0408.30
4.4.90.0000.0235.79
4.4.80.0030.0205.80
4.4.70.0000.0235.96
4.4.60.0030.0205.91
4.4.50.0070.0205.93
4.4.40.0000.0375.97
4.4.30.0000.0235.90
4.4.20.0030.0235.98
4.4.10.0030.0235.88
4.4.00.0000.0376.00
4.3.110.0030.0235.84
4.3.100.0000.0235.80
4.3.90.0030.0205.79
4.3.80.0030.0335.87
4.3.70.0030.0205.82
4.3.60.0030.0205.79
4.3.50.0000.0235.68
4.3.40.0000.0335.80
4.3.30.0030.0204.46
4.3.20.0030.0234.56
4.3.10.0030.0204.55
4.3.00.0130.01315.73

preferences:
46.77 ms | 401 KiB | 5 Q