3v4l.org

run code in 300+ PHP versions simultaneously
<?php $some_string = "упмугн ене7"; var_dump(strlen(json_encode(['message' => addslashes($some_string)])));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LvCMP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $some_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D1%83%D0%BF%D0%BC%D1%83%D0%B3%D0%BD+%D0%B5%D0%BD%D0%B57'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_encode'
          3        INIT_FCALL                                               'addslashes'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        INIT_ARRAY                                       ~3      $2, 'message'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                         $4      
          9        STRLEN                                           ~5      $4
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.11 ms | 1394 KiB | 19 Q