3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = 'Articulation Bras De Suspension Fiat Ulysse Nuova (179) 08/2002 - Avant Gauche'; preg_match('/[0-9]{1,2}\/[0-9]{2,4}[\s]*-[[0-9]{1,2}\/[0-9]{2,4}]{0,1}/', $t, $periode); if(isset($periode[0]) === true) { $periode = explode('-', $periode[0]); $a_partir_de = trim($periode[0]); $periode[1] = trim($periode[1]); } print_r($periode);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 26
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/laDuG
function name:  (null)
number of ops:  30
compiled vars:  !0 = $t, !1 = $periode, !2 = $a_partir_de
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Articulation+Bras+De+Suspension+Fiat+Ulysse+Nuova+%28179%29+08%2F2002+-+Avant+Gauche'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5B0-9%5D%7B1%2C2%7D%5C%2F%5B0-9%5D%7B2%2C4%7D%5B%5Cs%5D%2A-%5B%5B0-9%5D%7B1%2C2%7D%5C%2F%5B0-9%5D%7B2%2C4%7D%5D%7B0%2C1%7D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !1, 0
          7        TYPE_CHECK                                    8          ~5
          8      > JMPZ                                                     ~6, ->26
    5     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '-'
         11        FETCH_DIM_R                                      ~7      !1, 0
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    6    15        INIT_FCALL                                               'trim'
         16        FETCH_DIM_R                                      ~10     !1, 0
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !2, $11
    7    20        INIT_FCALL                                               'trim'
         21        FETCH_DIM_R                                      ~14     !1, 1
         22        SEND_VAL                                                 ~14
         23        DO_ICALL                                         $15     
         24        ASSIGN_DIM                                               !1, 1
         25        OP_DATA                                                  $15
   10    26    >   INIT_FCALL                                               'print_r'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.58 ms | 1396 KiB | 21 Q