3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "@keyframes animationName1{0%{opacity: 0}100%{opacity:1}}div{opacity:0}@keyframes animationName2{0%{opacity: 0}100%{opacity:1}}"; $rx = '~([^{}]+)({(?:[^{}]++|(\g<2>))*})~'; if (preg_match_all($rx, $text, $m)) { print_r($m[0]); }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
162.57 ms | 2042 KiB | 10 Q