3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = range(27,58); $json = array_fill_keys($json); print_r($json);die; $additional=''; for($i=27;$i<=58;$i++){ if(!empty($json['field'.$i]) && $i!=31 && $i!=42 && $i!=54){ $additional.='<li>'.$pdfdata['field'.$i].'</li>'; } } $html= " <div class=\"logo\" style=\"float: right; \"> <img src=\"img/LOGO2.png\" width=\"40%\" alt=\"\"> </div> <div class=\"clear\" style=\"clear: both\"></div> <div class=\"content\"> <p>To: $name</p> <p>Trading Entity: {$json['field10']}</p> </div> <div class='content-inner'> <p>Other Things: </p> $additional </div> ";
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: array_fill_keys() expects exactly 2 arguments, 1 given in /in/bpiAV:4 Stack trace: #0 /in/bpiAV(4): array_fill_keys(Array) #1 {main} thrown in /in/bpiAV on line 4
Process exited with code 255.

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:
61.3 ms | 401 KiB | 8 Q