3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'info@sample.com'; preg_match('/\A[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/i' . e, $str);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13
Fatal error: Uncaught Error: Undefined constant "e" in /in/uE42a:4 Stack trace: #0 {main} thrown in /in/uE42a on line 4
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant e - assumed 'e' (this will throw an Error in a future version of PHP) in /in/uE42a on line 4 Warning: preg_match(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/uE42a on line 4
Output for 7.2.0 - 7.2.33
Warning: Use of undefined constant e - assumed 'e' (this will throw an Error in a future version of PHP) in /in/uE42a on line 4
Output for 7.1.25 - 7.1.33
Notice: Use of undefined constant e - assumed 'e' in /in/uE42a on line 4

preferences:
25.74 ms | 409 KiB | 5 Q