3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (preg_match('#\.00#',$price)) { return "CHF " . (int)$price . ".-"; } else { return "CHF " . $price; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b6G39
function name:  (null)
number of ops:  13
compiled vars:  !0 = $price
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%23%5C.00%23'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > JMPZ                                                     $1, ->10
    3     5    >   CAST                                          4  ~2      !0
          6        CONCAT                                           ~3      'CHF+', ~2
          7        CONCAT                                           ~4      ~3, '.-'
          8      > RETURN                                                   ~4
          9*       JMP                                                      ->12
    5    10    >   CONCAT                                           ~5      'CHF+', !0
         11      > RETURN                                                   ~5
    6    12*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.91 ms | 1398 KiB | 15 Q