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) { $z= get_object_vars($o); //return $z; explode(' ',$o->name,2)//[0]//]= explode('',$o->name,2)[1]; ; } $a=array_map('getStuff', $cats); 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.0070.01418.07
8.3.50.0290.00722.08
8.3.40.0120.00318.55
8.3.30.0070.00719.09
8.3.20.0080.00018.63
8.3.10.0090.00023.65
8.3.00.0000.00719.18
8.2.180.0140.00716.38
8.2.170.0140.00022.96
8.2.160.0100.00420.57
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00822.30
8.2.110.0040.00420.52
8.2.100.0090.00317.91
8.2.90.0030.00517.84
8.2.80.0050.00319.23
8.2.70.0050.00317.91
8.2.60.0060.00617.90
8.2.50.0030.00618.10
8.2.40.0030.00620.46
8.2.30.0080.00017.98
8.2.20.0040.00417.89
8.2.10.0040.00418.17
8.2.00.0060.00318.10
8.1.280.0120.00325.92
8.1.270.0130.00720.24
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.32
8.1.230.0090.00322.82
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0050.00317.48
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0040.00418.56
8.1.160.0040.00422.02
8.1.150.0030.00719.01
8.1.140.0040.00417.59
8.1.130.0000.00817.86
8.1.120.0000.00717.44
8.1.110.0030.00617.51
8.1.100.0000.00717.39
8.1.90.0040.00417.39
8.1.80.0000.00717.45
8.1.70.0070.00017.44
8.1.60.0040.00417.59
8.1.50.0000.00817.42
8.1.40.0040.00417.54
8.1.30.0060.00317.66
8.1.20.0040.00417.68
8.1.10.0040.00417.52
8.1.00.0040.00417.38
8.0.300.0040.00421.98
8.0.290.0000.00716.88
8.0.280.0030.00418.47
8.0.270.0070.00017.30
8.0.260.0030.00317.36
8.0.250.0000.00717.07
8.0.240.0030.00516.96
8.0.230.0050.00216.92
8.0.220.0040.00416.91
8.0.210.0030.00417.00
8.0.200.0000.00917.09
8.0.190.0030.00517.04
8.0.180.0000.00717.07
8.0.170.0040.00416.90
8.0.160.0030.00516.88
8.0.150.0050.00317.01
8.0.140.0000.00816.96
8.0.130.0000.00613.37
8.0.120.0080.00016.95
8.0.110.0050.00316.89
8.0.100.0070.00016.96
8.0.90.0030.00516.80
8.0.80.0060.00916.99
8.0.70.0000.00716.86
8.0.60.0020.00516.96
8.0.50.0020.00516.96
8.0.30.0100.01017.24
8.0.20.0170.00317.40
8.0.10.0000.00817.07
8.0.00.0080.00916.69
7.4.330.0000.00715.03
7.4.320.0030.00316.63
7.4.300.0030.00616.61
7.4.290.0030.00316.40
7.4.280.0020.00516.52
7.4.270.0000.00716.64
7.4.260.0000.00716.38
7.4.250.0040.00416.40
7.4.240.0000.00716.58
7.4.230.0000.00716.63
7.4.220.0060.01316.75
7.4.210.0120.00516.63
7.4.200.0070.00016.35
7.4.160.0160.00016.41
7.4.150.0140.00517.40
7.4.140.0120.00717.86
7.4.130.0060.01416.66
7.4.120.0120.00616.62
7.4.110.0070.01116.68
7.4.100.0110.01116.46
7.4.90.0110.00716.38
7.4.80.0130.00319.39
7.4.70.0030.01916.70
7.4.60.0060.01016.57
7.4.50.0080.00016.33
7.4.40.0000.01716.47
7.4.30.0090.00816.33
7.4.00.0060.01015.04
7.3.330.0000.00513.35
7.3.320.0000.00613.41
7.3.310.0000.00716.24
7.3.300.0000.00616.21
7.3.290.0070.00016.21
7.3.280.0110.00816.38
7.3.270.0070.01017.40
7.3.260.0060.01216.26
7.3.250.0050.01416.46
7.3.240.0070.01516.28
7.3.230.0050.01416.59
7.3.210.0090.00916.64
7.3.200.0030.01719.39
7.3.190.0000.01616.27
7.3.180.0120.00316.44
7.3.170.0160.00716.48
7.3.160.0090.00616.29
7.2.330.0090.00916.70
7.2.320.0090.01216.43
7.2.310.0100.00716.84
7.2.300.0060.01216.46
7.2.290.0130.01016.85
7.2.60.0000.01416.87
7.2.00.0030.01019.45
7.1.200.0070.00415.81
7.1.100.0110.00718.14
7.1.70.0070.00417.32
7.1.60.0040.02119.48
7.1.50.0030.02016.96
7.1.00.0030.07722.32
7.0.200.0000.01016.55
7.0.60.0100.05319.96
7.0.50.0100.04317.91
7.0.40.0000.04720.13
7.0.30.0200.04720.07
7.0.20.0400.07020.07
7.0.10.0100.04320.11
7.0.00.0130.07320.06
5.6.280.0070.07021.19
5.6.210.0130.07320.51
5.6.200.0030.04018.19
5.6.190.0000.05320.77
5.6.180.0230.03320.49
5.6.170.0230.04020.45
5.6.160.0100.03720.55
5.6.150.0100.05018.20
5.6.140.0070.08018.32
5.6.130.0070.08018.28
5.6.120.0070.04021.04
5.6.110.0000.04321.08
5.6.100.0000.04321.04
5.6.90.0000.07021.14
5.6.80.0170.04020.31
5.5.350.0170.04320.45
5.5.340.0030.07017.94
5.5.330.0030.04720.13
5.5.320.0100.08020.36
5.5.310.0070.05720.27
5.5.300.0100.03318.02
5.5.290.0000.04318.00
5.5.280.0070.09020.98
5.5.270.0070.07720.89
5.5.260.0170.07320.92
5.5.250.0030.04020.74
5.5.240.0100.07320.20
5.4.450.0400.03719.64
5.4.440.0430.06019.62
5.4.430.0230.04319.53
5.4.420.0000.06319.43
5.4.410.0100.05319.44
5.4.400.0100.05319.21
5.4.390.0130.04718.99
5.4.380.0030.06019.21
5.4.370.0100.05319.07
5.4.360.0100.05319.04
5.4.350.0070.06019.07
5.4.340.0170.05319.23
5.4.320.0030.06319.24
5.4.310.0100.05319.16
5.4.300.0130.05019.26
5.4.290.0130.05319.14
5.4.280.0100.05319.25
5.4.270.0070.06019.16
5.4.260.0100.05318.97
5.4.250.0130.05019.11
5.4.240.0070.06719.11
5.4.230.0070.06019.23
5.4.220.0070.06018.97
5.4.210.0130.05018.97
5.4.200.0230.03717.01
5.4.190.0130.05018.96
5.4.180.0070.05719.16
5.4.170.0030.06019.10
5.4.160.0070.05319.01
5.4.150.0130.05719.00
5.4.140.0100.05016.64
5.4.130.0130.04716.37
5.4.120.0170.05316.53
5.4.110.0130.04316.39
5.4.100.0130.04716.30
5.4.90.0130.05016.52
5.4.80.0170.04316.50
5.4.70.0100.06016.50
5.4.60.0070.05316.43
5.4.50.0000.05716.67
5.4.40.0200.04316.50
5.4.30.0100.04716.68
5.4.20.0000.06016.49
5.4.10.0030.05316.36
5.4.00.0200.03716.07
5.3.290.0030.06314.57
5.3.280.0230.06014.70
5.3.270.0070.08014.81
5.3.260.0130.05014.57
5.3.250.0200.05014.73
5.3.240.0070.05714.71
5.3.230.0130.05014.71
5.3.220.0170.04714.61
5.3.210.0100.05314.73
5.3.200.0100.04714.54
5.3.190.0100.07014.79
5.3.180.0100.05014.53
5.3.170.0030.05714.53
5.3.160.0130.04714.53
5.3.150.0100.05714.63
5.3.140.0030.06014.67
5.3.130.0100.05314.68
5.3.120.0070.06014.75
5.3.110.0200.04714.61
5.3.100.0070.05714.04
5.3.90.0170.04714.18
5.3.80.0170.04314.14
5.3.70.0070.05314.06
5.3.60.0130.04714.24
5.3.50.0130.04713.94
5.3.40.0070.05313.91
5.3.30.0170.04313.89
5.3.20.0070.05313.73
5.3.10.0130.06713.73
5.3.00.0130.06713.60
5.2.170.0130.04011.15
5.2.160.0100.05011.11
5.2.150.0070.04311.15
5.2.140.0070.04311.26
5.2.130.0130.03711.07
5.2.120.0130.03711.06
5.2.110.0030.04711.32
5.2.100.0070.04011.06
5.2.90.0070.04011.11
5.2.80.0000.05011.11
5.2.70.0070.04311.21
5.2.60.0130.03711.02
5.2.50.0230.02711.08
5.2.40.0130.03710.98
5.2.30.0000.04710.99
5.2.20.0200.03010.95
5.2.10.0030.04311.08
5.2.00.0130.03710.84
5.1.60.0030.03710.05
5.1.50.0000.0409.99
5.1.40.0100.0309.96
5.1.30.0000.04310.52
5.1.20.0130.03010.35
5.1.10.0070.03310.07
5.1.00.0000.04310.22
5.0.50.0070.0338.61
5.0.40.0100.0208.38
5.0.30.0000.0478.20
5.0.20.0070.0278.11
5.0.10.0030.0308.11
5.0.00.0030.0438.14
4.4.90.0070.0205.90
4.4.80.0100.0175.99
4.4.70.0030.0235.90
4.4.60.0070.0205.81
4.4.50.0070.0205.97
4.4.40.0000.0405.97
4.4.30.0000.0305.96
4.4.20.0000.0275.86
4.4.10.0030.0275.88
4.4.00.0070.0405.83
4.3.110.0070.0205.75
4.3.100.0030.0205.83
4.3.90.0100.0235.85
4.3.80.0070.0335.72
4.3.70.0070.0205.71
4.3.60.0070.0305.86
4.3.50.0100.0235.84
4.3.40.0030.0475.68
4.3.30.0030.0304.59
4.3.20.0030.0304.59
4.3.10.0000.0334.56
4.3.00.0200.01715.73

preferences:
37.41 ms | 401 KiB | 5 Q