3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Z = "10 000"; $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/RfPdd
function name:  (null)
number of ops:  12
compiled vars:  !0 = $Z, !1 = $array, !2 = $Y, !3 = $check, !4 = $validJson
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '10+000'
    5     1        INIT_ARRAY                                       ~6      152, 'id'
    6     2        ADD_ARRAY_ELEMENT                                ~6      !0, 'price'
    7     3        ADD_ARRAY_ELEMENT                                ~6      !2, 'title'
    8     4        ADD_ARRAY_ELEMENT                                ~6      !3, 'check'
    4     5        ASSIGN                                                   !1, ~6
   10     6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !4, $8
   12    10        ECHO                                                     !4
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.95 ms | 1394 KiB | 15 Q