3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_encode(["foo" => chr(132), "bar" => "bar"])); var_dump(json_encode(["foo" => chr(132), "bar" => "bar"], JSON_PARTIAL_OUTPUT_ON_ERROR));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XF0JQ
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'json_encode'
          2        INIT_ARRAY                                       ~0      '%84', 'foo'
          3        ADD_ARRAY_ELEMENT                                ~0      'bar', 'bar'
          4        SEND_VAL                                                 ~0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'json_encode'
         10        INIT_ARRAY                                       ~3      '%84', 'foo'
         11        ADD_ARRAY_ELEMENT                                ~3      'bar', 'bar'
         12        SEND_VAL                                                 ~3
         13        SEND_VAL                                                 512
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.09 ms | 1394 KiB | 17 Q