3v4l.org

run code in 300+ PHP versions simultaneously
<?php $requestParams = [ 'hotel_age_child' => 0, 'hotel_age_teen' => 12, 'hotel_age_adult' => 16, 'hotel_age_senior' => 50, 'hotel_age_child_label' => 'Child Label', 'hotel_age_teen_label' => 'Teen Label', 'hotel_age_adult_label' => 'Adult Label', 'hotel_age_senior_label' => 'Senior Label', 'hotel_age_infant_label' => 'Infant Label', 'room_types' => [ [ 'room_type_id' => 1, 'room_type_max_adults' => 2, 'room_type_max_children' => 0, 'room_type_max_occupants' => 2 ], ], ]; echo json_encode($requestParams);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qr1Z4
function name:  (null)
number of ops:  6
compiled vars:  !0 = $requestParams
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   24     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.71 ms | 1385 KiB | 15 Q