3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(strlen('…')); var_dump(strlen(json_encode('.'))); var_dump(strlen(json_encode('…')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/COsQI
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 3
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'json_encode'
          5        SEND_VAL                                                 '.'
          6        DO_ICALL                                         $1      
          7        STRLEN                                           ~2      $1
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'json_encode'
         12        SEND_VAL                                                 '%E2%80%A6'
         13        DO_ICALL                                         $4      
         14        STRLEN                                           ~5      $4
         15        SEND_VAL                                                 ~5
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.44 ms | 1394 KiB | 17 Q