3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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/do0Gi
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'this+is+%0A+text'
    4     1        ASSIGN                                                   !1, 'this+is+%E2%98%AD+text'
    5     2        INIT_FCALL                                               'mb_strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'text'
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 'UTF-8'
          7        DO_ICALL                                         $4      
          8        ECHO                                                     $4
    6     9        INIT_FCALL                                               'mb_strpos'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 'text'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 'UTF-8'
         14        DO_ICALL                                         $5      
         15        ECHO                                                     $5
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.52 ms | 1394 KiB | 15 Q