3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('Amit ', 'Juneja ', ' Amit'); $b = array_map('strtolower',$a); $b = array_map('ltrim',$b); $b = array_map('rtrim',$b); $c = array('gupta','amit'); $d = array_intersect($b,$c); count($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/520Xf
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'strtolower'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        INIT_FCALL                                               'array_map'
          7        SEND_VAL                                                 'ltrim'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    6    11        INIT_FCALL                                               'array_map'
         12        SEND_VAL                                                 'rtrim'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !1, $9
    7    16        ASSIGN                                                   !2, <array>
    8    17        INIT_FCALL                                               'array_intersect'
         18        SEND_VAR                                                 !1
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $12     
         21        ASSIGN                                                   !3, $12
    9    22        COUNT                                            ~14     !3
         23        FREE                                                     ~14
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.13 ms | 1395 KiB | 17 Q