3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Content-Type: text/xml'; print substr($text, strchr($text, ':')); print substr($text, strchr($text, ':') + 1); print substr($text, strpos($text, ':') + 1); print substr($text, strpos($text, ':') + 2); print substr($text, 0, strchr($text, ':'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TF9f1
function name:  (null)
number of ops:  51
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Content-Type%3A+text%2Fxml'
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'strchr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '%3A'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
    5    10        INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !0
         12        INIT_FCALL                                               'strchr'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 '%3A'
         15        DO_ICALL                                         $4      
         16        ADD                                              ~5      $4, 1
         17        SEND_VAL                                                 ~5
         18        DO_ICALL                                         $6      
         19        ECHO                                                     $6
    6    20        INIT_FCALL                                               'substr'
         21        SEND_VAR                                                 !0
         22        INIT_FCALL                                               'strpos'
         23        SEND_VAR                                                 !0
         24        SEND_VAL                                                 '%3A'
         25        DO_ICALL                                         $7      
         26        ADD                                              ~8      $7, 1
         27        SEND_VAL                                                 ~8
         28        DO_ICALL                                         $9      
         29        ECHO                                                     $9
    7    30        INIT_FCALL                                               'substr'
         31        SEND_VAR                                                 !0
         32        INIT_FCALL                                               'strpos'
         33        SEND_VAR                                                 !0
         34        SEND_VAL                                                 '%3A'
         35        DO_ICALL                                         $10     
         36        ADD                                              ~11     $10, 2
         37        SEND_VAL                                                 ~11
         38        DO_ICALL                                         $12     
         39        ECHO                                                     $12
    8    40        INIT_FCALL                                               'substr'
         41        SEND_VAR                                                 !0
         42        SEND_VAL                                                 0
         43        INIT_FCALL                                               'strchr'
         44        SEND_VAR                                                 !0
         45        SEND_VAL                                                 '%3A'
         46        DO_ICALL                                         $13     
         47        SEND_VAR                                                 $13
         48        DO_ICALL                                         $14     
         49        ECHO                                                     $14
         50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.45 ms | 1400 KiB | 19 Q