3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'valami-mas--lofasz###punczi-pina-segg'; $arr = explode('###', $string); $arr2 = explode('-', $arr[0]); var_dump($arr[1]); var_dump($arr2); var_dump(explode('AAAAA', $string));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AZZKq
function name:  (null)
number of ops:  27
compiled vars:  !0 = $string, !1 = $arr, !2 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'valami-mas--lofasz%23%23%23punczi-pina-segg'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%23%23%23'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    7     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '-'
          8        FETCH_DIM_R                                      ~6      !1, 0
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    9    12        INIT_FCALL                                               'var_dump'
         13        FETCH_DIM_R                                      ~9      !1, 1
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                                 
   10    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
   13    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'explode'
         21        SEND_VAL                                                 'AAAAA'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $12     
         24        SEND_VAR                                                 $12
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.75 ms | 1395 KiB | 17 Q