3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(strlen('…')); var_dump(json_encode('.')); var_dump(strlen(json_encode('.'))); var_dump(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/a1mrI
function name:  (null)
number of ops:  30
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        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'json_encode'
         11        SEND_VAL                                                 '.'
         12        DO_ICALL                                         $3      
         13        STRLEN                                           ~4      $3
         14        SEND_VAL                                                 ~4
         15        DO_ICALL                                                 
    7    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'json_encode'
         18        SEND_VAL                                                 '%E2%80%A6'
         19        DO_ICALL                                         $6      
         20        SEND_VAR                                                 $6
         21        DO_ICALL                                                 
    8    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'json_encode'
         24        SEND_VAL                                                 '%E2%80%A6'
         25        DO_ICALL                                         $8      
         26        STRLEN                                           ~9      $8
         27        SEND_VAL                                                 ~9
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.68 ms | 1395 KiB | 17 Q