3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '[{"hello":"dolly", "bob":{"a":"is your uncle", "b":"is not your uncle"}}]'; var_dump(strlen($str)); var_dump(strlen(pack('*H', $str)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lfdi3
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B%7B%22hello%22%3A%22dolly%22%2C+%22bob%22%3A%7B%22a%22%3A%22is+your+uncle%22%2C+%22b%22%3A%22is+not+your+uncle%22%7D%7D%5D'
    3     1        INIT_FCALL                                               'var_dump'
          2        STRLEN                                           ~2      !0
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'pack'
          7        SEND_VAL                                                 '%2AH'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        STRLEN                                           ~5      $4
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.07 ms | 1398 KiB | 17 Q