3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '{"html":true,"data":'.json_encode(array('ab'=>2,'cd'=>3)).'}'; 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/lfvIB
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        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      '%7B%22html%22%3Atrue%2C%22data%22%3A', $0
          4        CONCAT                                           ~2      ~1, '%7D'
          5        ECHO                                                     ~2
    3     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:
145.02 ms | 1394 KiB | 15 Q