3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ "https://eksisozluk.com/merve-sanayin-pizzaciya-kapiyi-ciplak-acmasi--5868043?a=popular", "https://eksisozluk.com/merve-sanayin-pizzaciya-kapiyi-ciplak-acmasi--5868043?a=popular" ]; function filter_urls($item) { return substr($item, 0, 36); } $new_array = array_map('filter_urls', $array); print_r($array); print_r($new_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iGgkV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $new_array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   13     1        INIT_FCALL                                                   'array_map'
          2        SEND_VAL                                                     'filter_urls'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $3      
          5        ASSIGN                                                       !1, $3
   15     6        INIT_FCALL                                                   'print_r'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
   17     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Function filter_urls:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iGgkV
function name:  filter_urls
number of ops:  5
compiled vars:  !0 = $item
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
   10     1        FRAMELESS_ICALL_3                substr              ~1      !0, 0
          2        OP_DATA                                                      36
          3      > RETURN                                                       ~1
   11     4*     > RETURN                                                       null

End of function filter_urls

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.5 ms | 2682 KiB | 15 Q