3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "illustration,drawing,printing"; $array = Array ( 0 => 'illustration', 1 => 'drawing', 2 => 'painting', 3 => 'ceramics' ); $stringArray = explode(',',$string); $common = array_intersect($stringArray,$array); echo "Skills :".implode(',',$common);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/StqYN
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string, !1 = $array, !2 = $stringArray, !3 = $common
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'illustration%2Cdrawing%2Cprinting'
    5     1        ASSIGN                                                       !1, <array>
   12     2        INIT_FCALL                                                   'explode'
          3        SEND_VAL                                                     '%2C'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $6      
          6        ASSIGN                                                       !2, $6
   14     7        INIT_FCALL                                                   'array_intersect'
          8        SEND_VAR                                                     !2
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                             $8      
         11        ASSIGN                                                       !3, $8
   16    12        FRAMELESS_ICALL_2                implode             ~10     '%2C', !3
         13        CONCAT                                               ~11     'Skills+%3A', ~10
         14        ECHO                                                         ~11
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.31 ms | 477 KiB | 9 Q