3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "aa\" b \x27 c"; $sum = 0; $inputs = explode("\n", $input); echo addslashes($input); for($i = 0; $i<count($inputs); $i++){ $ns = addslashes($inputs[$i]); for($j = 0; $j<strlen($ns); $j++){ $sum++; if(preg_match("/\\^[\"]/",$ns)>0){ $sum+=2; } } //$sum-= strlen($inputs[$i]); } echo $sum;
Output for git.master, git.master_jit, rfc.property-hooks
aa\" b \' c11

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.59 ms | 401 KiB | 8 Q