3v4l.org

run code in 300+ PHP versions simultaneously
<?php $needle = file_get_contents("http://premierleague.com/"); preg_match('/^<table cellspacing="0" cellpadding="0" class="leagueTable">(.*)</table>$/', $needle, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cSdr0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $needle, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fpremierleague.com%2F'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2F%5E%3Ctable+cellspacing%3D%220%22+cellpadding%3D%220%22+class%3D%22leagueTable%22%3E%28.%2A%29%3C%2Ftable%3E%24%2F'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.7 ms | 1394 KiB | 19 Q