3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.21 ms | 1394 KiB | 15 Q