3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = file_get_contents("http://store.steampowered.com/app/318020/"); if ( preg_match('|<div class="game_purchase_price price">(.*?)</div>|is',$source,$cap) ) { echo $cap[1]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/kC0Op
function name:  (null)
number of ops:  13
compiled vars:  !0 = $source, !1 = $cap
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fstore.steampowered.com%2Fapp%2F318020%2F'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%7C%3Cdiv+class%3D%22game_purchase_price+price%22%3E%28.%2A%3F%29%3C%2Fdiv%3E%7Cis'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $4      
          9      > JMPZ                                                     $4, ->12
    7    10    >   FETCH_DIM_R                                      ~5      !1, 1
         11        ECHO                                                     ~5
    8    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.09 ms | 1394 KiB | 17 Q