3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. 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        FETCH_DIM_FUNC_ARG                               $6      !1, 1
         9        SEND_VAR_EX                                              $6
        10        DO_FCALL                                      0  $7      
        11        ASSIGN                                                   !2, $7
   6    12        INIT_FCALL                                               'print_r'
        13        SEND_VAR                                                 !2
        14        DO_ICALL                                                 
   9    15        ASSIGN                                                   !3, <array>
  20    16        NOP                                                      
  25    17      > RETURN                                                   1

Function mapexportvalue:
Finding entry points
Branch analysis from position: 0
Jump found. 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 7.1.0