3v4l.org

run code in 300+ 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:  19
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        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 '%2C'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $10     
         16        CONCAT                                           ~11     'Skills+%3A', $10
         17        ECHO                                                     ~11
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.81 ms | 1006 KiB | 16 Q