3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'Wires: 8 Pairs: 4'; sscanf($input, 'Wires: %d Pairs: %d', $wires, $pairs); printf('Wires: %d Pairs: %d', $wires / $pairs, $pairs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oWucq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $input, !1 = $wires, !2 = $pairs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Wires%3A+8+Pairs%3A+4'
    5     1        INIT_FCALL                                               'sscanf'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'Wires%3A+%25d+Pairs%3A+%25d'
          4        SEND_REF                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'printf'
          8        SEND_VAL                                                 'Wires%3A+%25d+Pairs%3A+%25d'
          9        DIV                                              ~5      !1, !2
         10        SEND_VAL                                                 ~5
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.77 ms | 1001 KiB | 15 Q