3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.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" } }
Output for hhvm-3.10.0

Process exited with code 153.