Search
Try Laravel Str helpers such as slug, snake, kebab, mask, and limit on a sample string.
Illuminate\Support\Str powers Str::slug(), str()->headline(), and the rest of the string helpers. This playground only allows a whitelist of methods, so you cannot call arbitrary PHP. Use it to see how a title becomes a slug or how mask hides part of an email.
PHP Regex Tester
Test a regular expression with PHP preg_match or preg_match_all and inspect capture groups.
PHP Date Format Cheatsheet
Look up PHP date format tokens and preview Carbon::parse($input)->format($format) live.
JSON to PHP Array Converter
Convert JSON into PHP short-array syntax and a starter Eloquent model with fillable attributes and inferred casts.
From the blog
Use Str::slug before you write another regex
Illuminate Str helpers cover slugs, case, masking, and limits. They are easier to test than a one-off pattern.
From the blog
preg_match versus preg_match_all, and how to test without hanging PHP
Same PCRE engine, different return shape. Cap the pattern and read preg_last_error_msg().