3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 3; $b = 5; switch($a) { case ($b): echo '$a and $b are equivalent'; break; case ($a > $b): echo '$a is greater than $b'; break; default: echo 'The rain in Spain stays mainly in the plain'; break; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
filename:       /in/aoHPZ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 3
    3     1        ASSIGN                                                   !1, 5
    6     2        IS_EQUAL                                                 !0, !1
          3      > JMPNZ                                                    ~4, ->8
    9     4    >   IS_SMALLER                                       ~5      !1, !0
          5        IS_EQUAL                                                 !0, ~5
          6      > JMPNZ                                                    ~4, ->10
          7    > > JMP                                                      ->12
    7     8    >   ECHO                                                     '%24a+and+%24b+are+equivalent'
    8     9      > JMP                                                      ->14
   10    10    >   ECHO                                                     '%24a+is+greater+than+%24b'
   11    11      > JMP                                                      ->14
   13    12    >   ECHO                                                     'The+rain+in+Spain+stays+mainly+in+the+plain'
   14    13      > JMP                                                      ->14
   16    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.39 ms | 1404 KiB | 13 Q