3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Size : Size 13 - 950-975 <br />Easygrip_Locking_System : No <br />Veranda_pole : No <br />Safelock_tie_down : No <br />Storm_Pole : No <br />Tall_Annexe : Yes <br />Inner_tent : Yes <br />"; if (preg_match_all ('~([a-z_]+) : (.+?) <br />~i', $string, $out, PREG_PATTERN_ORDER)) { extract(array_combine($out[1], $out[2])); echo "Size = $Size\n"; echo "Easygrip_Locking_System = $Easygrip_Locking_System\n"; echo "Veranda_pole = $Veranda_pole\n"; echo "Safelock_tie_down = $Safelock_tie_down\n"; echo "Storm_Pole = $Storm_Pole\n"; echo "Tall_Annexe = $Tall_Annexe\n"; echo "Inner_tent = $Inner_tent\n"; }
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.13
Size = Size 13 - 950-975 Easygrip_Locking_System = No Veranda_pole = No Safelock_tie_down = No Storm_Pole = No Tall_Annexe = Yes Inner_tent = Yes

preferences:
160.38 ms | 408 KiB | 5 Q