run code in 200+ php & hhvm versions
Bugs & Features
<?php $res='<span style="font-size: 14px;">You are allowed to view <b>30</b> CVs per day. Today you have watched <b>3</b></span> <iframe src="https://docs.google.com/viewer?url=http://files.seaemploy.com/resume/5ee9e75861dc2a8d0ddf4a3b5e05044b.doc&amp;module=files&amp;embedded=true" width="100%" height="100%" style="border: none;"> </iframe>'; preg_match('#watched <b>(\d+)#', $res, $match); var_dump($match);; //if(!preg_match('#watched (\d+)#', $res, $match) OR $match[1]>=30) throw new \Exception("Account limit", 2);
based on eC8f4
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.2.0
array(2) { [0]=> string(12) "watched <b>3" [1]=> string(1) "3" }
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/Se4Iu on line 7
Process exited with code 255.