3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $prefix = 'Korvin!~Korvin@concrete5/79063/Korvin'; $matches = array(); if (preg_match_all('/(.+?)!(.+?)@(.+?)/', $prefix, $matches)) { var_dump($matches); }
based on NbXgo
Output for 4.3.0 - 7.2.0
array(4) { [0]=> array(1) { [0]=> string(16) "Korvin!~Korvin@c" } [1]=> array(1) { [0]=> string(6) "Korvin" } [2]=> array(1) { [0]=> string(7) "~Korvin" } [3]=> array(1) { [0]=> string(1) "c" } }