3v4l.org

run code in 500+ PHP versions simultaneously
<?php $price = 'US $515.00'; $price = str_replace('US $', '', $price); echo $price;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZDl5t
function name:  (null)
number of ops:  6
compiled vars:  !0 = $price
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'US+%24515.00'
    5     1        FRAMELESS_ICALL_3                str_replace         ~2      'US+%24', ''
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~2
    7     4        ECHO                                                         !0
    8     5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.15 ms | 2211 KiB | 13 Q