3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_validate('0') ? 'true' : 'false'; if ('0' == false) { echo "\nfalsey"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
Branch analysis from position: 10
filename:       /in/5IGU2
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_validate'
          1        SEND_VAL                                                 '0'
          2        DO_ICALL                                         $0      
          3      > JMPZ                                                     $0, ->6
          4    >   QM_ASSIGN                                        ~1      'true'
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~1      'false'
          7    >   ECHO                                                     ~1
    5     8      > JMPZ                                                     <true>, ->10
    6     9    >   ECHO                                                     '%0Afalsey'
    7    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.26 ms | 1000 KiB | 15 Q