3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.15 ms | 1396 KiB | 17 Q