3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arg = 'B'; $vehicle = ( $arg == 'B' ) ? 'bus' : ( $arg == 'A' ) ? 'airplane' : ( $arg == 'T' ) ? 'train' : ( $arg == 'C' ) ? 'car' : ( $arg == 'H' ) ? 'horse' : 'feet' ; echo $arg == 'H';
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
Jump found. Position 1 = 7
Branch analysis from position: 7
Jump found. Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
Jump found. Position 1 = 12
Branch analysis from position: 12
Jump found. Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
Jump found. Position 1 = 17
Branch analysis from position: 17
Jump found. Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
Jump found. Position 1 = 22
Branch analysis from position: 22
Jump found. Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
Jump found. Position 1 = 26
Branch analysis from position: 26
Jump found. Position 1 = -2
Branch analysis from position: 25
Jump found. Position 1 = -2
Branch analysis from position: 20
Jump found. Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
Branch analysis from position: 25
Branch analysis from position: 15
Jump found. Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
Branch analysis from position: 20
Branch analysis from position: 10
Jump found. Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
Branch analysis from position: 15
Branch analysis from position: 5
Jump found. Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
Branch analysis from position: 10
filename:       /in/68jb3
function name:  (null)
number of ops:  30
compiled vars:  !0 = $arg, !1 = $vehicle
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'B'
   4     1        IS_EQUAL                                         ~3      !0, 'B'
         2      > JMPZ                                                     ~3, ->5
         3    >   QM_ASSIGN                                        ~4      'bus'
         4      > JMP                                                      ->7
         5    >   IS_EQUAL                                         ~5      !0, 'A'
         6        QM_ASSIGN                                        ~4      ~5
         7    > > JMPZ                                                     ~4, ->10
         8    >   QM_ASSIGN                                        ~6      'airplane'
         9      > JMP                                                      ->12
        10    >   IS_EQUAL                                         ~7      !0, 'T'
        11        QM_ASSIGN                                        ~6      ~7
        12    > > JMPZ                                                     ~6, ->15
        13    >   QM_ASSIGN                                        ~8      'train'
        14      > JMP                                                      ->17
        15    >   IS_EQUAL                                         ~9      !0, 'C'
        16        QM_ASSIGN                                        ~8      ~9
        17    > > JMPZ                                                     ~8, ->20
        18    >   QM_ASSIGN                                        ~10     'car'
        19      > JMP                                                      ->22
        20    >   IS_EQUAL                                         ~11     !0, 'H'
        21        QM_ASSIGN                                        ~10     ~11
        22    > > JMPZ                                                     ~10, ->25
        23    >   QM_ASSIGN                                        ~12     'horse'
        24      > JMP                                                      ->26
        25    >   QM_ASSIGN                                        ~12     'feet'
        26    >   ASSIGN                                                   !1, ~12
   5    27        IS_EQUAL                                         ~14     !0, 'H'
        28        ECHO                                                     ~14
        29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0