3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ob_start(); $run = "/bin/bash /var/www/sites/public_html/panel.ru/panel.sh show_domain_list"; system($run); $array = ob_get_clean(); $array = " 000-default.conf default-ssl.conf just.ru panel.ru testius.ru "; var_dump($array); echo PHP_EOL; $result_array=explode(' ',$array); var_dump($result_array);
based on 8HAEb
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
string(63) " 000-default.conf default-ssl.conf just.ru panel.ru testius.ru " array(7) { [0]=> string(0) "" [1]=> string(16) "000-default.conf" [2]=> string(16) "default-ssl.conf" [3]=> string(7) "just.ru" [4]=> string(8) "panel.ru" [5]=> string(10) "testius.ru" [6]=> string(0) "" }
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
string(63) " 000-default.conf default-ssl.conf just.ru panel.ru testius.ru " Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/YUVQM on line 9 PHP_EOLarray(7) { [0]=> string(0) "" [1]=> string(16) "000-default.conf" [2]=> string(16) "default-ssl.conf" [3]=> string(7) "just.ru" [4]=> string(8) "panel.ru" [5]=> string(10) "testius.ru" [6]=> string(0) "" }