3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $lxc_info = "Name: wightcrm State: RUNNING PID: 18416 IP: 10.0.3.48 CPU use: 2464710238833 BlkIO use: 4607229952 Memory use: 389132288 KMem use: 0 Link: veth6KBEER TX bytes: 920260588 RX bytes: 166798199 Total bytes: 1087058787"; $info = explode("\n", $lxc_info); foreach ($info as $item) { $item = array_map('trim', explode(':', $item)); $item = array($item[0] => $item[1]); $c = $item; } print_r($c);
based on htOk2
Output for 4.3.0 - 7.2.0
Array ( [Total bytes] => 1087058787 )