3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 5; var_dump((string) $foo === '5' ? true : false);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OW1JY
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        INIT_FCALL                                               'var_dump'
          2        CAST                                          6  ~2      !0
          3        IS_IDENTICAL                                             ~2, '5'
          4      > JMPZ                                                     ~3, ->7
          5    >   QM_ASSIGN                                        ~4      <true>
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~4      <false>
          8    >   SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.94 ms | 1394 KiB | 15 Q