3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '{"html":true,"data":'.json_encode().'}'; echo "\r\n"; echo json_encode(array('html'=>true,'data'=>array('ab'=>2,'cd'=>3)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tWAYE
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_encode'
          1        DO_ICALL                                         $0      
          2        CONCAT                                           ~1      '%7B%22html%22%3Atrue%2C%22data%22%3A', $0
          3        CONCAT                                           ~2      ~1, '%7D'
          4        ECHO                                                     ~2
    3     5        ECHO                                                     '%0D%0A'
    4     6        INIT_FCALL                                               'json_encode'
          7        SEND_VAL                                                 <array>
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.47 ms | 1394 KiB | 15 Q