3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = file_get_contents('http://www.bcb.gov.br/'); preg_match_all('/ORES-->(.+)<!--/s', $url, $conteudo); $exibir = $conteudo[0][0]; $retirar = array('mais moedas','atas Copom','mais detalhes','ORES-->','<!--'); $exibir = str_replace($retirar, '', $exibir); echo $exibir;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rNgAG
function name:  (null)
number of ops:  21
compiled vars:  !0 = $url, !1 = $conteudo, !2 = $exibir, !3 = $retirar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.bcb.gov.br%2F'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        INIT_FCALL                                               'preg_match_all'
          5        SEND_VAL                                                 '%2FORES--%3E%28.%2B%29%3C%21--%2Fs'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    4     9        FETCH_DIM_R                                      ~7      !1, 0
         10        FETCH_DIM_R                                      ~8      ~7, 0
         11        ASSIGN                                                   !2, ~8
    5    12        ASSIGN                                                   !3, <array>
    6    13        INIT_FCALL                                               'str_replace'
         14        SEND_VAR                                                 !3
         15        SEND_VAL                                                 ''
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !2, $11
    7    19        ECHO                                                     !2
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.42 ms | 1386 KiB | 19 Q