3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.59 ms | 1400 KiB | 23 Q