3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<EOF [live] programmes.static.version = "2.261.0" EOF; preg_match_all('#\[live\][\s]*programmes.static.version[\s]*=[\s]*"(\d+\.\d+\.\d+)(\.\d+)?"#', $data, $m); print_r($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qbgY4
function name:  (null)
number of ops:  10
compiled vars:  !0 = $data, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Blive%5D%0Aprogrammes.static.version+++++++%3D+%222.261.0%22'
    8     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%23%5C%5Blive%5C%5D%5B%5Cs%5D%2Aprogrammes.static.version%5B%5Cs%5D%2A%3D%5B%5Cs%5D%2A%22%28%5Cd%2B%5C.%5Cd%2B%5C.%5Cd%2B%29%28%5C.%5Cd%2B%29%3F%22%23'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.11 ms | 1394 KiB | 17 Q