3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<pre>"; $A = "µPhysik I~1µ"; $Ar = explode("µµ", substr($A, 1, -1)); print_r($Ar); $A = count($Ar) > 0 ? "µ".implode("µµ", $Ar)."µ" : ""; print_r($A); $Ar = explode("µµ", substr($A, 2, -2)); print_r($Ar); print_r(explode("~", $Ar[0])); $A = count($Arrr) > 0 ? "µ".implode("µµ", $Arrr)."µ" : ""; print_r($A); echo "</pre>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 63
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 64
Branch analysis from position: 64
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 63
Branch analysis from position: 55
Branch analysis from position: 63
filename:       /in/Enllu
function name:  (null)
number of ops:  70
compiled vars:  !0 = $A, !1 = $Ar, !2 = $Arrr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%3Cpre%3E'
    3     1        ASSIGN                                                   !0, '%C2%B5Physik+I%7E1%C2%B5'
    4     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%C2%B5%C2%B5'
          4        INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 -1
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    5    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    6    15        COUNT                                            ~8      !1
         16        IS_SMALLER                                               0, ~8
         17      > JMPZ                                                     ~9, ->26
         18    >   INIT_FCALL                                               'implode'
         19        SEND_VAL                                                 '%C2%B5%C2%B5'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $10     
         22        CONCAT                                           ~11     '%C2%B5', $10
         23        CONCAT                                           ~12     ~11, '%C2%B5'
         24        QM_ASSIGN                                        ~13     ~12
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~13     ''
         27    >   ASSIGN                                                   !0, ~13
    7    28        INIT_FCALL                                               'print_r'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                                 
    8    31        INIT_FCALL                                               'explode'
         32        SEND_VAL                                                 '%C2%B5%C2%B5'
         33        INIT_FCALL                                               'substr'
         34        SEND_VAR                                                 !0
         35        SEND_VAL                                                 2
         36        SEND_VAL                                                 -2
         37        DO_ICALL                                         $16     
         38        SEND_VAR                                                 $16
         39        DO_ICALL                                         $17     
         40        ASSIGN                                                   !1, $17
    9    41        INIT_FCALL                                               'print_r'
         42        SEND_VAR                                                 !1
         43        DO_ICALL                                                 
   10    44        INIT_FCALL                                               'print_r'
         45        INIT_FCALL                                               'explode'
         46        SEND_VAL                                                 '%7E'
         47        FETCH_DIM_R                                      ~20     !1, 0
         48        SEND_VAL                                                 ~20
         49        DO_ICALL                                         $21     
         50        SEND_VAR                                                 $21
         51        DO_ICALL                                                 
   11    52        COUNT                                            ~23     !2
         53        IS_SMALLER                                               0, ~23
         54      > JMPZ                                                     ~24, ->63
         55    >   INIT_FCALL                                               'implode'
         56        SEND_VAL                                                 '%C2%B5%C2%B5'
         57        SEND_VAR                                                 !2
         58        DO_ICALL                                         $25     
         59        CONCAT                                           ~26     '%C2%B5', $25
         60        CONCAT                                           ~27     ~26, '%C2%B5'
         61        QM_ASSIGN                                        ~28     ~27
         62      > JMP                                                      ->64
         63    >   QM_ASSIGN                                        ~28     ''
         64    >   ASSIGN                                                   !0, ~28
   12    65        INIT_FCALL                                               'print_r'
         66        SEND_VAR                                                 !0
         67        DO_ICALL                                                 
   13    68        ECHO                                                     '%3C%2Fpre%3E'
         69      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.16 ms | 1400 KiB | 21 Q