3v4l.org

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 (\d+)#', strip_tags($res), $match); var_dump($match);; //if(!preg_match('#watched (\d+)#', $res, $match) OR $match[1]>=30) throw new \Exception("Account limit", 2);
based on Se4Iu
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.2.0
array(2) { [0]=> string(9) "watched 3" [1]=> string(1) "3" }
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/EgsYt on line 7
Process exited with code 255.