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 = '\(([^\)]+)\)'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XH0Fv
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str, !1 = $re, !2 = $strs, !3 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Babc+-+def+-+ghi+-+jkl%5D'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5C%5B%28%5B%5E%5C%5D%5D%2A%29%5C%5D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL_BY_NAME                                       'split'
          7        SEND_VAL_EX                                              '+-+'
          8        CHECK_FUNC_ARG                                           
          9        FETCH_DIM_FUNC_ARG                               $6      !1, 1
         10        SEND_FUNC_ARG                                            $6
         11        DO_FCALL                                      0  $7      
         12        ASSIGN                                                   !2, $7
    6    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
    8    16        ASSIGN                                                   !3, <array>
   25    17      > RETURN                                                   1

Function mapexportvalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XH0Fv
function name:  mapExportValue
number of ops:  3
compiled vars:  !0 = $exportvalue, !1 = $reg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   22     1        ASSIGN                                                   !1, '%5C%28%28%5B%5E%5C%29%5D%2B%29%5C%29'
   25     2      > RETURN                                                   null

End of function mapexportvalue

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.86 ms | 1395 KiB | 17 Q