3v4l.org

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