3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "[abc - def - ghi - jkl]"; preg_match('/\[([^\]]*)\]/', $str, $re); $strs = split(' - ', $re[1]); print_r($strs); $t = array('(1) 1 = aseptische Eingriffe' ,'(1) 1 = mit HLM' ,'(1) nein' ,'(2) 2 = Vorhofflimmern' ,'(3) 2 = ja, COPD ohne Dauermedikation' ,'(3) 2 = ja, innerhalb der letzten 3 Wochen' ,'(4) 3 = 3-Gefäßerkrankung' ,'(4) 4 = Patient mit inaktivierender Allgemeinerkrankung, die eine ständige Lebensbedrohung darstellt' ,'(5) 4 = ja, länger als 91 Tage' ,'(9) 9 = Entlassung in eine Rehabilitationseinrichtung'); function mapExportValue($exportvalue) { $reg = '\(([^\)]+)\)'; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function split() in /in/XH0Fv:5 Stack trace: #0 {main} thrown in /in/XH0Fv on line 5
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:
38.42 ms | 401 KiB | 8 Q