3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "¿Holá?"; print str_len($x); print $x[0]; print substr($x, 1); print htmlentities($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/siCDk
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C2%BFHol%C3%A1%3F'
    4     1        INIT_FCALL_BY_NAME                                       'str_len'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
    5     5        FETCH_DIM_R                                      ~3      !0, 0
          6        ECHO                                                     ~3
    6     7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
    7    12        INIT_FCALL                                               'htmlentities'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        ECHO                                                     $5
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.63 ms | 1398 KiB | 17 Q