3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.12 ms | 1394 KiB | 17 Q