3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode([ 'date' => date(), 'server' => hostname(), ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5QvY9
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
    4     1        INIT_FCALL                                               'date'
          2        DO_ICALL                                         $0      
          3        INIT_ARRAY                                       ~1      $0, 'date'
    5     4        INIT_FCALL_BY_NAME                                       'hostname'
          5        DO_FCALL                                      0  $2      
          6        ADD_ARRAY_ELEMENT                                ~1      $2, 'server'
          7        SEND_VAL                                                 ~1
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
    6    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.29 ms | 1398 KiB | 17 Q