3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '> '; echo $data."\n"; //returns > echo mb_strlen($data, 'UTF-8')."\n"; //returns 1 echo mb_strlen('>', 'UTF-8')."\n"; //returns 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VLr9e
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3E+++'
    5     1        CONCAT                                           ~2      !0, '%0A'
          2        ECHO                                                     ~2
    8     3        INIT_FCALL                                               'mb_strlen'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'UTF-8'
          6        DO_ICALL                                         $3      
          7        CONCAT                                           ~4      $3, '%0A'
          8        ECHO                                                     ~4
   11     9        INIT_FCALL                                               'mb_strlen'
         10        SEND_VAL                                                 '%3E'
         11        SEND_VAL                                                 'UTF-8'
         12        DO_ICALL                                         $5      
         13        CONCAT                                           ~6      $5, '%0A'
         14        ECHO                                                     ~6
   12    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.36 ms | 1398 KiB | 15 Q