3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "username............: username home directory......: 00/username mail storage server.: mail-server.example.net status..............: active quota size..........: 1000.000 megabytes quota count.........: no quota forward to..........: username@example.com full name...........: testing:testing offers..............:"; preg_match_all('/([^\.]+)\.*:\s*(.+)/i', $string, $matches); var_dump($matches);
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
array(3) { [0]=> array(8) { [0]=> string(30) "username............: username" [1]=> string(34) " home directory......: 00/username" [2]=> string(46) " mail storage server.: mail-server.example.net" [3]=> string(29) " status..............: active" [4]=> string(41) " quota size..........: 1000.000 megabytes" [5]=> string(31) " quota count.........: no quota" [6]=> string(43) " forward to..........: username@example.com" [7]=> string(38) " full name...........: testing:testing" } [1]=> array(8) { [0]=> string(8) "username" [1]=> string(15) " home directory" [2]=> string(20) " mail storage server" [3]=> string(7) " status" [4]=> string(11) " quota size" [5]=> string(12) " quota count" [6]=> string(11) " forward to" [7]=> string(10) " full name" } [2]=> array(8) { [0]=> string(8) "username" [1]=> string(11) "00/username" [2]=> string(23) "mail-server.example.net" [3]=> string(6) "active" [4]=> string(18) "1000.000 megabytes" [5]=> string(8) "no quota" [6]=> string(20) "username@example.com" [7]=> string(15) "testing:testing" } }

preferences:
217.03 ms | 408 KiB | 313 Q