3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dword = '00'; for ($i = 0; $i < 500; ++$i){ $dword = dword_inc($dword); echo $dword."\n"; } function dword_inc($dword){ if (empty($dword)){ return '1'; } $last = $dword{strlen($dword)-1}; if ($last == 9){ $last = 'A'; }else{ $last++; } if ($last == 'G'){ $last = 0; if (strlen($dword) > 1){ $dword2 = dword_inc(substr($dword, 0, strlen($dword)-1)); $dword = $dword2.'0'; }else{ $dword = '1'.$dword; } }else{ $dword{strlen($dword)-1} = $last; } return $dword; }
Output for git.master, git.master_jit
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /in/P6q7L on line 12
Process exited with code 255.
Output for rfc.property-hooks
Parse error: syntax error, unexpected token "{" in /in/P6q7L on line 12
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:
41.32 ms | 401 KiB | 8 Q