3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = "Nymphomaniac: Volume 1 – Nimfomana Vol. I (2013) – filme online"; $mystring = str_replace(' ', '+', $mystring); $mystring = str_replace('-', '(/', $mystring); $parts1 = explode("(", $mystring); //break the string up around the "(" character in $mystring //print_r($parts1); $mystrings = $parts1[0]; echo $mystrings; print_r(explode('-', $mystrings));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LlhW4
function name:  (null)
number of ops:  29
compiled vars:  !0 = $mystring, !1 = $parts1, !2 = $mystrings
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Nymphomaniac%3A+Volume+1+%E2%80%93+Nimfomana+Vol.+I+%282013%29+%E2%80%93+filme+online'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '+'
          3        SEND_VAL                                                 '%2B'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    4     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '-'
          9        SEND_VAL                                                 '%28%2F'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !0, $6
    5    13        INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '%28'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !1, $8
    8    18        FETCH_DIM_R                                      ~10     !1, 0
         19        ASSIGN                                                   !2, ~10
    9    20        ECHO                                                     !2
   10    21        INIT_FCALL                                               'print_r'
         22        INIT_FCALL                                               'explode'
         23        SEND_VAL                                                 '-'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $12     
         26        SEND_VAR                                                 $12
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.08 ms | 1395 KiB | 19 Q