3v4l.org

run code in 300+ PHP versions simultaneously
<?php $main_teaser = "Containerdienst {{stadt}} - Container günstig mieten"; $arr_main_teaser = print_r(str_word_count($main_teaser, 1, '{}äüß')); if(in_array("{{stadt}}", $arr_main_teaser)) { $key = array_search('{{stadt}}', $arr_main_teaser); $replace = array($key => ucfirst($input->urlSegment1)); $new_main_teaser = array_replace($arr_main_teaser, $replace); print_r($new_main_teaser); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 34
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/eEDAg
function name:  (null)
number of ops:  35
compiled vars:  !0 = $main_teaser, !1 = $arr_main_teaser, !2 = $key, !3 = $replace, !4 = $input, !5 = $new_main_teaser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Containerdienst+%7B%7Bstadt%7D%7D+-+Container+g%C3%BCnstig+mieten'
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'str_word_count'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 '%7B%7D%C3%A4%C3%BC%C3%9F'
          6        DO_ICALL                                         $7      
          7        SEND_VAR                                                 $7
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !1, $8
    6    10        INIT_FCALL                                               'in_array'
         11        SEND_VAL                                                 '%7B%7Bstadt%7D%7D'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $10     
         14      > JMPZ                                                     $10, ->34
    7    15    >   INIT_FCALL                                               'array_search'
         16        SEND_VAL                                                 '%7B%7Bstadt%7D%7D'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !2, $11
    8    20        INIT_FCALL                                               'ucfirst'
         21        FETCH_OBJ_R                                      ~13     !4, 'urlSegment1'
         22        SEND_VAL                                                 ~13
         23        DO_ICALL                                         $14     
         24        INIT_ARRAY                                       ~15     $14, !2
         25        ASSIGN                                                   !3, ~15
    9    26        INIT_FCALL                                               'array_replace'
         27        SEND_VAR                                                 !1
         28        SEND_VAR                                                 !3
         29        DO_ICALL                                         $17     
         30        ASSIGN                                                   !5, $17
   11    31        INIT_FCALL                                               'print_r'
         32        SEND_VAR                                                 !5
         33        DO_ICALL                                                 
   14    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.69 ms | 1396 KiB | 25 Q