3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(json_encode(array('type' => "Feature", "geometry" => array()))); print_r("\r\n"); print_r(json_encode('{"type":"Feature","geometry":{}}'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kX6Q4
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'json_encode'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    3     6        INIT_FCALL                                               'print_r'
          7        SEND_VAL                                                 '%0D%0A'
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'json_encode'
         11        SEND_VAL                                                 '%7B%22type%22%3A%22Feature%22%2C%22geometry%22%3A%7B%7D%7D'
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.68 ms | 1394 KiB | 17 Q