3v4l.org

run code in 300+ PHP versions simultaneously
<?php # The initial array with its string elements. $array = ["SecRuleEngine On", "SecRequestBodyAccess On"]; # Explode each element at the space producing array with 2 values. $new_array = array_map(function ($current) { return explode(" ", $current); }, $array); # Print the new array. var_dump($new_array); ?>

preferences:
37.63 ms | 406 KiB | 5 Q