3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.25 ms | 1394 KiB | 15 Q