3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(unserialize('a:2:{s:5:"rules";a:1:{i:0;a:3:{s:4:"rule";s:8:"required";s:5:"value";b:1;s:7:"message";s:44:"Please enter a value for the {$field} field.";}}s:5:"codes";a:1:{i:0;s:8:"required";}}'));
Output for 4.3.0 - 7.2.0
Array ( [rules] => Array ( [0] => Array ( [rule] => required [value] => 1 [message] => Please enter a value for the {$field} field. ) ) [codes] => Array ( [0] => required ) )