3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r('<pre>'); print_r(json_encode(array('type' => "Feature", "geometry" => array()))); 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/iRWjZ
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        SEND_VAL                                                 '%3Cpre%3E'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'print_r'
          4        INIT_FCALL                                               'json_encode'
          5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          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:
160.47 ms | 1394 KiB | 17 Q