3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = 'One Infinite Loop, Cupertino 95014'; $cityZipCodeRegex = '/^[^,]+,\s*(.+?)\s*(\d{5})$/'; preg_match($cityZipCodeRegex, $address, $matches); [, $city, $zipCode] = $matches; var_dump($matches); //saveCityZipCode($city, $zipCode);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7sk8X
function name:  (null)
number of ops:  17
compiled vars:  !0 = $address, !1 = $cityZipCodeRegex, !2 = $matches, !3 = $city, !4 = $zipCode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'One+Infinite+Loop%2C+Cupertino+95014'
    3     1        ASSIGN                                                   !1, '%2F%5E%5B%5E%2C%5D%2B%2C%5Cs%2A%28.%2B%3F%29%5Cs%2A%28%5Cd%7B5%7D%29%24%2F'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        QM_ASSIGN                                        ~8      !2
          8        FETCH_LIST_R                                     $9      ~8, 1
          9        ASSIGN                                                   !3, $9
         10        FETCH_LIST_R                                     $11     ~8, 2
         11        ASSIGN                                                   !4, $11
         12        FREE                                                     ~8
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.74 ms | 1405 KiB | 17 Q