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; return 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.0140.00718.55
8.3.50.0160.00318.20
8.3.40.0110.00418.67
8.3.30.0030.01018.92
8.3.20.0030.00618.75
8.3.10.0000.00923.53
8.3.00.0080.00019.19
8.2.180.0140.00716.63
8.2.170.0130.00319.04
8.2.160.0110.01122.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00422.29
8.2.110.0060.00320.38
8.2.100.0040.00717.97
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0060.00317.93
8.2.60.0030.00617.80
8.2.50.0050.00518.10
8.2.40.0040.00420.61
8.2.30.0040.00417.98
8.2.20.0000.00817.84
8.2.10.0040.00418.10
8.2.00.0020.00517.96
8.1.280.0110.00725.92
8.1.270.0000.01520.38
8.1.260.0070.00726.35
8.1.250.0070.00728.09
8.1.240.0030.00622.73
8.1.230.0000.01119.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0060.00317.22
8.1.180.0030.00518.10
8.1.170.0040.00418.70
8.1.160.0030.00522.09
8.1.150.0080.00018.93
8.1.140.0040.00417.36
8.1.130.0000.00717.79
8.1.120.0040.00417.52
8.1.110.0080.00017.38
8.1.100.0040.00417.45
8.1.90.0020.00517.50
8.1.80.0030.00517.53
8.1.70.0030.00317.34
8.1.60.0100.00017.64
8.1.50.0050.00317.58
8.1.40.0040.00417.59
8.1.30.0000.00817.63
8.1.20.0000.00917.53
8.1.10.0060.00317.48
8.1.00.0040.00417.37
8.0.300.0060.00318.77
8.0.290.0000.00816.75
8.0.280.0000.00818.39
8.0.270.0070.00017.25
8.0.260.0000.00617.20
8.0.250.0030.00317.07
8.0.240.0060.00017.06
8.0.230.0050.00216.97
8.0.220.0000.00816.95
8.0.210.0000.00716.98
8.0.200.0100.00017.02
8.0.190.0040.00417.03
8.0.180.0040.00417.01
8.0.170.0000.00716.91
8.0.160.0030.00316.90
8.0.150.0000.00716.94
8.0.140.0000.00816.96
8.0.130.0000.00813.45
8.0.120.0000.00816.96
8.0.110.0000.00716.89
8.0.100.0050.00216.84
8.0.90.0050.00216.88
8.0.80.0100.00316.94
8.0.70.0050.00217.01
8.0.60.0000.00716.89
8.0.50.0040.00416.82
8.0.30.0040.01317.17
8.0.20.0100.01317.40
8.0.10.0040.00417.17
8.0.00.0100.00816.89
7.4.330.0060.00015.07
7.4.320.0000.00616.55
7.4.300.0000.00816.48
7.4.290.0030.00316.61
7.4.280.0080.00016.63
7.4.270.0040.00416.52
7.4.260.0040.00416.42
7.4.250.0040.00416.50
7.4.240.0050.00216.67
7.4.230.0000.00816.73
7.4.220.0090.01516.66
7.4.210.0080.01016.73
7.4.200.0030.00516.47
7.4.160.0060.00916.34
7.4.150.0130.00317.40
7.4.140.0100.01117.86
7.4.130.0070.01416.49
7.4.120.0070.01216.51
7.4.110.0120.00616.46
7.4.100.0120.00916.49
7.4.90.0040.01416.58
7.4.80.0090.00919.39
7.4.70.0180.00616.41
7.4.60.0100.00616.63
7.4.50.0030.00616.71
7.4.40.0090.00916.52
7.4.30.0070.01016.56
7.4.10.0070.01015.65
7.4.00.0060.01015.20
7.3.330.0020.00213.31
7.3.320.0030.00313.16
7.3.310.0050.00216.39
7.3.300.0030.00316.38
7.3.290.0030.00316.30
7.3.280.0080.00916.31
7.3.270.0100.00717.40
7.3.260.0000.01716.24
7.3.250.0070.01016.38
7.3.240.0090.01216.54
7.3.230.0070.01016.62
7.3.210.0110.00716.54
7.3.200.0110.00819.39
7.3.190.0110.00516.64
7.3.180.0130.00316.63
7.3.170.0130.00316.37
7.3.160.0070.01016.49
7.3.130.0100.00815.55
7.3.120.0030.01315.13
7.3.110.0080.00915.28
7.3.100.0040.00915.23
7.3.90.0060.00915.23
7.3.80.0050.01015.17
7.3.70.0040.01015.09
7.3.60.0050.00815.16
7.3.50.0040.00715.17
7.3.40.0060.00915.12
7.3.30.0050.00915.11
7.3.20.0080.00617.00
7.3.10.0050.00917.04
7.3.00.0050.01016.84
7.2.330.0150.00316.72
7.2.320.0160.00016.73
7.2.310.0110.00516.80
7.2.300.0070.01116.72
7.2.290.0090.01416.63
7.2.260.0050.01215.74
7.2.250.0070.01115.43
7.2.240.0080.01015.35
7.2.230.0070.00815.48
7.2.220.0040.01015.53
7.2.210.0070.00815.39
7.2.200.0060.00915.54
7.2.190.0050.01115.40
7.2.180.0040.01015.42
7.2.170.0050.01015.42
7.2.160.0050.00915.95
7.2.150.0040.01317.63
7.2.140.0040.00717.67
7.2.130.0070.00917.71
7.2.120.0070.00717.67
7.2.110.0050.01217.62
7.2.100.0080.00717.47
7.2.90.0070.01017.44
7.2.80.0020.01117.62
7.2.70.0070.00517.65
7.2.60.0060.00817.40
7.2.50.0080.00817.73
7.2.40.0060.00817.81
7.2.30.0030.01417.83
7.2.20.0050.01417.70
7.2.10.0080.00917.62
7.2.00.0050.01018.30
7.1.330.0060.01016.28
7.1.320.0040.01016.20
7.1.310.0070.00815.99
7.1.300.0040.00716.13
7.1.290.0050.00816.16
7.1.280.0090.00616.10
7.1.270.0040.00916.19
7.1.260.0090.00516.05
7.1.250.0080.00516.63
7.1.240.0090.00516.54
7.1.230.0040.00916.44
7.1.220.0080.00816.44
7.1.210.0030.01016.54
7.1.200.0090.00416.52
7.1.190.0060.00516.50
7.1.180.0050.00816.45
7.1.170.0070.00816.51
7.1.160.0100.00216.49
7.1.150.0060.00816.64
7.1.140.0090.00716.53
7.1.130.0080.00916.58
7.1.120.0080.00516.41
7.1.110.0080.00616.65
7.1.100.0080.00817.18
7.1.90.0060.01016.37
7.1.80.0100.00316.50
7.1.70.0050.00816.68
7.1.60.0070.00917.53
7.1.50.0070.01116.63
7.1.40.0100.00716.51
7.1.30.0060.00616.60
7.1.20.0030.00716.46
7.1.10.0090.00616.46
7.1.00.0120.02418.44
7.0.330.0050.01016.19
7.0.320.0040.01016.35
7.0.310.0050.00616.10
7.0.300.0070.00816.29
7.0.290.0100.00316.08
7.0.280.0060.00616.05
7.0.270.0090.00916.16
7.0.260.0060.00616.23
7.0.250.0060.00816.01
7.0.240.0040.01216.13
7.0.230.0080.00716.19
7.0.220.0070.00316.11
7.0.210.0050.00816.18
7.0.200.0060.00816.45
7.0.190.0080.00816.13
7.0.180.0050.00716.28
7.0.170.0030.00916.27
7.0.160.0080.00816.23
7.0.150.0030.01416.31
7.0.140.0070.01016.20
7.0.130.0080.00616.19
7.0.120.0070.00916.21
7.0.110.0080.00316.16
7.0.100.0050.00916.22
7.0.90.0030.01016.27
7.0.80.0090.00416.25
7.0.70.0060.00916.27
7.0.60.0090.02017.50
7.0.50.0080.01616.86
7.0.40.0060.02816.09
7.0.30.0210.02915.99
7.0.20.0160.02416.15
7.0.10.0170.03016.17
7.0.00.0100.02616.14
5.6.400.0060.01015.23
5.6.390.0050.00915.02
5.6.380.0040.01315.17
5.6.370.0050.01214.97
5.6.360.0050.01015.27
5.6.350.0050.00715.19
5.6.340.0080.00915.26
5.6.330.0080.00615.10
5.6.320.0110.00714.98
5.6.310.0040.00914.90
5.6.300.0090.00815.24
5.6.290.0070.01015.05
5.6.280.0050.03216.97
5.6.270.0050.00514.97
5.6.260.0090.00715.02
5.6.250.0040.01015.25
5.6.240.0060.00815.07
5.6.230.0030.00714.99
5.6.220.0060.01215.13
5.6.210.0080.02317.00
5.6.200.0050.02616.16
5.6.190.0080.02817.06
5.6.180.0170.02916.84
5.6.170.0130.01816.75
5.6.160.0040.02916.96
5.6.150.0030.02516.08
5.6.140.0080.03016.12
5.6.130.0080.03516.26
5.6.120.0090.03317.05
5.6.110.0070.02117.11
5.6.100.0060.01917.28
5.6.90.0090.03117.05
5.6.80.0080.03116.84
5.6.70.0990.01816.69
5.6.60.0090.00814.91
5.6.50.0040.01414.95
5.6.40.0090.00814.97
5.6.30.0020.01314.98
5.6.20.0070.01015.16
5.6.10.0100.00315.03
5.6.00.0070.00614.96
5.5.380.0090.00815.16
5.5.370.0040.00914.94
5.5.360.0100.00314.97
5.5.350.0110.03316.99
5.5.340.0070.02316.04
5.5.330.0040.02716.88
5.5.320.0170.02916.69
5.5.310.0100.01916.95
5.5.300.0090.03116.04
5.5.290.0080.03116.06
5.5.280.0100.03217.05
5.5.270.0060.02117.07
5.5.260.0090.03316.97
5.5.250.0070.02716.93
5.5.240.0070.03416.83
5.5.230.0050.01014.85
5.5.220.0020.01215.05
5.5.210.0030.01415.08
5.5.200.0050.01115.00
5.5.190.0090.00514.96
5.5.180.0080.00815.14
5.5.170.0090.00815.14
5.5.160.0020.01215.05
5.5.150.0080.00714.76
5.5.140.0110.00814.86
5.5.130.0070.01014.95
5.5.120.0110.00514.85
5.5.110.0070.00515.08
5.5.100.0040.01215.09
5.5.90.0060.01114.90
5.5.80.0040.00715.00
5.5.70.0060.00514.99
5.5.60.0090.00514.88
5.5.50.0030.01514.83
5.5.40.0030.01214.86
5.5.30.0030.01415.01
5.5.20.0070.00815.10
5.5.10.0050.00915.10
5.5.00.0050.00714.72
5.4.450.0130.01914.41
5.4.440.0170.02714.45
5.4.430.0060.02314.40
5.4.420.0060.02414.40
5.4.410.0120.01914.29
5.4.400.0130.02014.24
5.4.390.0030.02914.27
5.4.380.0090.02214.29
5.4.370.0100.02214.29
5.4.360.0070.02314.20
5.4.350.0080.02414.21
5.4.340.0050.02414.19
5.4.330.0030.00911.86
5.4.320.0030.02914.32
5.4.310.0090.02414.20
5.4.300.0040.03114.18
5.4.290.0090.01914.25
5.4.280.0060.02514.21
5.4.270.0130.01514.19
5.4.260.0070.02314.22
5.4.250.0070.02514.14
5.4.240.0070.02214.17
5.4.230.0080.02114.15
5.4.220.0120.01914.26
5.4.210.0050.02214.25
5.4.200.0110.02613.46
5.4.190.0080.02014.26
5.4.180.0030.02814.18
5.4.170.0070.02514.21
5.4.160.0070.02514.23
5.4.150.0040.02714.15
5.4.140.0100.02613.37
5.4.130.0070.02313.37
5.4.120.0090.02113.22
5.4.110.0070.01813.50
5.4.100.0100.01813.25
5.4.90.0080.02113.38
5.4.80.0090.01813.33
5.4.70.0080.02013.37
5.4.60.0130.01813.44
5.4.50.0070.02113.49
5.4.40.0070.02013.37
5.4.30.0090.02213.45
5.4.20.0030.02413.42
5.4.10.0060.02013.38
5.4.00.0080.01913.17
5.3.290.0100.06014.68
5.3.280.0170.05014.58
5.3.270.0100.05714.68
5.3.260.0030.06014.57
5.3.250.0070.05714.84
5.3.240.0130.05314.57
5.3.230.0200.05014.69
5.3.220.0070.06014.55
5.3.210.0170.05314.55
5.3.200.0200.04314.66
5.3.190.0130.05014.48
5.3.180.0100.05314.77
5.3.170.0070.06314.66
5.3.160.0130.05014.64
5.3.150.0230.05314.68
5.3.140.0170.04714.63
5.3.130.0130.05014.57
5.3.120.0170.04714.63
5.3.110.0030.06314.59
5.3.100.0200.04713.95
5.3.90.0200.04313.99
5.3.80.0070.05314.14
5.3.70.0170.04713.98
5.3.60.0200.04713.97
5.3.50.0100.05013.99
5.3.40.0070.06314.13
5.3.30.0030.05714.04
5.3.20.0000.06013.61
5.3.10.0100.05013.72
5.3.00.0100.05013.80
5.2.170.0030.05311.32
5.2.160.0030.04311.13
5.2.150.0070.04311.34
5.2.140.0070.04311.13
5.2.130.0100.04011.11
5.2.120.0070.04311.17
5.2.110.0030.04711.23
5.2.100.0130.03711.02
5.2.90.0030.04711.07
5.2.80.0130.04011.31
5.2.70.0100.04711.17
5.2.60.0100.04311.25
5.2.50.0130.04011.00
5.2.40.0100.04710.91
5.2.30.0100.06010.94
5.2.20.0230.02711.03
5.2.10.0170.03310.88
5.2.00.0100.06010.73
5.1.60.0100.04010.18
5.1.50.0070.03310.13
5.1.40.0170.02710.20
5.1.30.0100.03310.32
5.1.20.0170.03010.32
5.1.10.0070.03710.08
5.1.00.0170.03710.07
5.0.50.0100.0308.68
5.0.40.0100.0308.57
5.0.30.0100.0408.33
5.0.20.0030.0308.18
5.0.10.0070.0308.18
5.0.00.0030.0438.38
4.4.90.0000.0275.99
4.4.80.0030.0235.94
4.4.70.0030.0235.92
4.4.60.0030.0235.84
4.4.50.0070.0205.96
4.4.40.0100.0305.96
4.4.30.0070.0205.96
4.4.20.0030.0235.88
4.4.10.0100.0205.98
4.4.00.0000.0375.87
4.3.110.0070.0205.75
4.3.100.0000.0235.86
4.3.90.0030.0235.85
4.3.80.0030.0375.85
4.3.70.0070.0205.74
4.3.60.0100.0175.72
4.3.50.0030.0275.72
4.3.40.0030.0375.83
4.3.30.0030.0234.65
4.3.20.0030.0234.47
4.3.10.0070.0204.47
4.3.00.0100.01315.73

preferences:
69.03 ms | 400 KiB | 5 Q