3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = "9938275IBUPROFENIX 400 mg comp.x 10 00000594NNPhoenix 00000062220110810001001803827517791848330116001010NNN00"; $str = trim(trim(substr($line, 7, 44)) . ' ' . trim(substr($line, 51, 24))); $changes = array( 'E1' => 'B', 'A7' => 'º', 'A5' => 'Ñ', 'A4' => 'ñ', 'A3' => 'ú', 'A2' => 'ó', 'A1' => 'í', '82' => 'é', 'A0' => 'á', '9A' => 'U', ); foreach ($changes as $key => $value){ $str = $this->doFix($str, $key, $value); } $str = str_replace(',', ', ', $str); $str = str_replace('+', ' + ', $str); $str = str_replace('¥', 'Ñ', $str); $str = str_replace('š', 'U', $str); $str = ucfirst(trim($str)); $str = preg_replace('/\s+/', ' ', $str); $brand = trim(substr($line, 7, 44)); echo $str . '----'; echo $brand . '----';
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Using $this when not in object context in /in/hs0OP:20 Stack trace: #0 {main} thrown in /in/hs0OP on line 20
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:
45.62 ms | 401 KiB | 8 Q