3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['test' => 'bar']; if (!$this->json = @json_encode($data)) { print "true"; } else { print "false"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I6URd
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_THIS                                       $2      
          2        BEGIN_SILENCE                                    ~4      
          3        INIT_FCALL                                               'json_encode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        END_SILENCE                                              ~4
          7        ASSIGN_OBJ                                       ~3      $2, 'json'
          8        OP_DATA                                                  $5
          9        BOOL_NOT                                         ~6      ~3
         10      > JMPZ                                                     ~6, ->13
    4    11    >   ECHO                                                     'true'
         12      > JMP                                                      ->14
    5    13    >   ECHO                                                     'false'
         14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.68 ms | 1394 KiB | 15 Q