3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($eleje, $megn) = preg_split("/as/i", "felvido AS 'Felvétel dátuma'"); print $megn; if($megn) { $megn = preg_replace(array('/\'/','/\"/'), array('', ''), trim($megn)); } print $megn;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/uUBsa
function name:  (null)
number of ops:  22
compiled vars:  !0 = $eleje, !1 = $megn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_split'
          1        SEND_VAL                                                 '%2Fas%2Fi'
          2        SEND_VAL                                                 'felvido+AS+%27Felv%C3%A9tel+d%C3%A1tuma%27'
          3        DO_ICALL                                         $2      
          4        FETCH_LIST_R                                     $3      $2, 0
          5        ASSIGN                                                   !0, $3
          6        FETCH_LIST_R                                     $5      $2, 1
          7        ASSIGN                                                   !1, $5
          8        FREE                                                     $2
    3     9        ECHO                                                     !1
    4    10      > JMPZ                                                     !1, ->20
    5    11    >   INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 <array>
         13        SEND_VAL                                                 <array>
         14        INIT_FCALL                                               'trim'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                         $8      
         19        ASSIGN                                                   !1, $8
    7    20    >   ECHO                                                     !1
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.52 ms | 1395 KiB | 19 Q