3v4l.org

run code in 300+ PHP versions simultaneously
<pre><?php $file = " # Dump File # Database is ported from MS Access CREATE DATABASE IF NOT EXISTS `movedb`; # Table structure for table 'test_prefixSwitchboard Items' DROP TABLE IF EXISTS `test_prefixSwitchboard Items`; CREATE TABLE `tbl` ( `x` INTEGER NOT NULL, `y` INTEGER NOT NULL DEFAULT 0, `z` VARCHAR(255) ) ENGINE=innodb DEFAULT CHARSET=utf8; SET autocommit=1; # # Dumping data for table 'Switchboard Items' # INSERT INTO `tbl` ( `x`, `y`, `z`) VALUES ( '111' , '111' ,'111'); INSERT INTO `tbl` ( `x`, `y`, `z`) VALUES ( '222' , '2222' ,'222'); INSERT INTO `tbl` ( `x`, `y`, `z`) VALUES ( '333' , '333' ,'333'); "; preg_match_all( '/`tbl`(?:.*?)VALUES\s+\(\s+(.*?)(?=\);\s*$)/', $file, $matches); foreach( $matches[1] as $match) echo $match . "\n";;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/uvSTA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $file, !1 = $matches, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cpre%3E'
    2     1        ASSIGN                                                   !0, '+++%23+Dump+File%0A++++%23+Database+is+ported+from+MS+Access%0A++++CREATE+DATABASE+IF+NOT+EXISTS+%60movedb%60%3B%0A++++%23+Table+structure+for+table+%27test_prefixSwitchboard+Items%27%0A++++DROP+TABLE+IF+EXISTS+%60test_prefixSwitchboard+Items%60%3B%0A++++CREATE+TABLE+%60tbl%60+%28%0A++++++%60x%60+INTEGER+NOT+NULL%2C+%0A++++++%60y%60+INTEGER+NOT+NULL+DEFAULT+0%2C+%0A++++++%60z%60+VARCHAR%28255%29%0A++++%29+ENGINE%3Dinnodb+DEFAULT+CHARSET%3Dutf8%3B%0A++++SET+autocommit%3D1%3B%0A++++%23%0A++++%23+Dumping+data+for+table+%27Switchboard+Items%27%0A++++%23%0A++++INSERT+INTO+%60tbl%60+%28+%60x%60%2C+%60y%60%2C+%60z%60%29+VALUES+%28+%27111%27+%2C+%27111%27+%2C%27111%27%29%3B%0A++++INSERT+INTO+%60tbl%60+%28+%60x%60%2C+%60y%60%2C+%60z%60%29+VALUES+%28+%27222%27+%2C+%272222%27+%2C%27222%27%29%3B%0A++++INSERT+INTO+%60tbl%60+%28+%60x%60%2C+%60y%60%2C+%60z%60%29+VALUES+%28+%27333%27+%2C+%27333%27+%2C%27333%27%29%3B%0A'
   20     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%60tbl%60%28%3F%3A.%2A%3F%29VALUES%5Cs%2B%5C%28%5Cs%2B%28.%2A%3F%29%28%3F%3D%5C%29%3B%5Cs%2A%24%29%2F'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
   21     7        FETCH_DIM_R                                      ~5      !1, 1
          8      > FE_RESET_R                                       $6      ~5, ->13
          9    > > FE_FETCH_R                                               $6, !2, ->13
   22    10    >   CONCAT                                           ~7      !2, '%0A'
         11        ECHO                                                     ~7
   21    12      > JMP                                                      ->9
         13    >   FE_FREE                                                  $6
   22    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.65 ms | 1395 KiB | 15 Q