3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "2x-Handbücher;(Mac,Win)/1xÄCDÜÖAronis 1x Lizens,Seriennummer"; var_dump(strlen(substr($foo, 0, 60))); var_dump(strlen(utf8_decode($foo)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UVuCh
function name:  (null)
number of ops:  18
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2x-Handb%C3%BCcher%3B%28Mac%2CWin%29%2F1x%C3%84CD%C3%9C%C3%96Aronis+1x+Lizens%2CSeriennummer'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 60
          6        DO_ICALL                                         $2      
          7        STRLEN                                           ~3      $2
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'utf8_decode'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        STRLEN                                           ~6      $5
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.45 ms | 1386 KiB | 19 Q