3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "¿Holá?"; print strlen($x); print "\n"; print $x[0]; print "\n"; print substr($x, 1); print "\n"; print htmlentities($x); print "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JC0lm
function name:  (null)
number of ops:  19
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        ECHO                                                     '%0A'
    6     4        FETCH_DIM_R                                      ~3      !0, 0
          5        ECHO                                                     ~3
    7     6        ECHO                                                     '%0A'
    8     7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
    9    12        ECHO                                                     '%0A'
   10    13        INIT_FCALL                                               'htmlentities'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        ECHO                                                     $5
   11    17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.58 ms | 1394 KiB | 17 Q