3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'id' => 152, 'price' => $Z, 'title' => $Y, 'check' => $check ); $validJson = json_encode($array); echo $validJson;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a9Etr
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $Z, !2 = $Y, !3 = $check, !4 = $validJson
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~5      152, 'id'
    4     1        ADD_ARRAY_ELEMENT                                ~5      !1, 'price'
    5     2        ADD_ARRAY_ELEMENT                                ~5      !2, 'title'
    6     3        ADD_ARRAY_ELEMENT                                ~5      !3, 'check'
    2     4        ASSIGN                                                   !0, ~5
    8     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !4, $7
   10     9        ECHO                                                     !4
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.71 ms | 1398 KiB | 15 Q