3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "¿Holá?"; print strlen($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/GONaD
function name:  (null)
number of ops:  15
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        STRLEN                                           ~2      !0
          2        ECHO                                                     ~2
    5     3        FETCH_DIM_R                                      ~3      !0, 0
          4        ECHO                                                     ~3
    6     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $4      
          9        ECHO                                                     $4
    7    10        INIT_FCALL                                               'htmlentities'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ECHO                                                     $5
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.13 ms | 1394 KiB | 17 Q