3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_string_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return trim(substr($string,$ini,$len)); } $str = " -- Dennis R. O'Brien President • O'Brien Targeted Marketing • 3135 State Rd 580 • Safety Harbor, FL 34695 Direct 231.206.8816 • Fax 888.590.2750 • denny@customertrack.net This e-mail is subject to the Electronics Communications Privacy Act,18 U.S.C. §§2510-2521. This e-mail communication and any attachments may containconfidential and privileged information for the use of the designated recipients namedabove. If you are not the intended recipient, you are hereby notified that you havereceived this communication in error and that any review, disclosure, dissemination,distribution or copying of it or its contents is prohibited. If you have received thiscommunication in error, please delete the communication. Date: Sat, 28 Jun 2014 13:14:35 -0700 To: wm3192@hotmail.com; tvnielsen@charter.net; markvanhook@gmail.com Subject: Form Submission from Your Hot Leads From: no-reply@yourhotleads.com Form Submission from Your Hot LeadsDownload CSV file of registered information. Name: Walkers Renton Mazda Contact Name: Zachary Phone: Camacho Email: zc32low@gmail.com "; var_dump(get_string_between($str, "Name: ", "Contact Name:"));
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
string(20) "Walkers Renton Mazda"
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 string(20) "Walkers Renton Mazda"

preferences:
311.46 ms | 402 KiB | 451 Q