3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '£'; echo "string length is " . strlen($string) . "\n"; echo "but you probably wanted " . mb_strlen($string) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aNCiT
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C2%A3'
    5     1        STRLEN                                           ~2      !0
          2        CONCAT                                           ~3      'string+length+is+', ~2
          3        CONCAT                                           ~4      ~3, '%0A'
          4        ECHO                                                     ~4
    6     5        INIT_FCALL                                               'mb_strlen'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        CONCAT                                           ~6      'but+you+probably+wanted+', $5
          9        CONCAT                                           ~7      ~6, '%0A'
         10        ECHO                                                     ~7
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.26 ms | 1394 KiB | 15 Q