3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo mb_strlen("\n"); echo mb_strlen("☭"); $a = "this is \n text"; $b = "this is ☭ text"; echo mb_strpos($a, "text", 0, "UTF-8"); echo mb_strpos($b, "text", 0, "UTF-8");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qTWca
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_strlen'
          1        SEND_VAL                                                 '%0A'
          2        DO_ICALL                                         $2      
          3        ECHO                                                     $2
    4     4        INIT_FCALL                                               'mb_strlen'
          5        SEND_VAL                                                 '%E2%98%AD'
          6        DO_ICALL                                         $3      
          7        ECHO                                                     $3
    5     8        ASSIGN                                                   !0, 'this+is+%0A+text'
    6     9        ASSIGN                                                   !1, 'this+is+%E2%98%AD+text'
    7    10        INIT_FCALL                                               'mb_strpos'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'text'
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 'UTF-8'
         15        DO_ICALL                                         $6      
         16        ECHO                                                     $6
    8    17        INIT_FCALL                                               'mb_strpos'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 'text'
         20        SEND_VAL                                                 0
         21        SEND_VAL                                                 'UTF-8'
         22        DO_ICALL                                         $7      
         23        ECHO                                                     $7
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.08 ms | 1395 KiB | 17 Q