3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match_all('/(\w+)\s*=\s*(true|false)/i', 'zlec = true, zlec2 = false', $results); var_dump($results); ?>
based on bUYDA
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
array(3) { [0]=> array(2) { [0]=> string(11) "zlec = true" [1]=> string(13) "zlec2 = false" } [1]=> array(2) { [0]=> string(4) "zlec" [1]=> string(5) "zlec2" } [2]=> array(2) { [0]=> string(4) "true" [1]=> string(5) "false" } }