3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "1000 - 2000"; sscanf($string, '%d - %d', $price1, $price2); echo "£$price1 - £$price2";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Va3Un
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $price1, !2 = $price2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1000+-+2000'
    5     1        INIT_FCALL                                               'sscanf'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%25d+-+%25d'
          4        SEND_REF                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    7     7        ROPE_INIT                                     4  ~6      '%C2%A3'
          8        ROPE_ADD                                      1  ~6      ~6, !1
          9        ROPE_ADD                                      2  ~6      ~6, '+-+%C2%A3'
         10        ROPE_END                                      3  ~5      ~6, !2
         11        ECHO                                                     ~5
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.07 ms | 996 KiB | 14 Q