3v4l.org

run code in 300+ PHP versions simultaneously
<?php // /^\/foo\/([^\/]+?)\/?$/i // if (preg_match('/^api\/booking\/([^\/]+?)\/?$/i', 'api/booking/:ff', $m)) { var_dump($m); } var_dump(explode('/', 'api/booking/:id/:osa'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/r62kO
function name:  (null)
number of ops:  17
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5Eapi%5C%2Fbooking%5C%2F%28%5B%5E%5C%2F%5D%2B%3F%29%5C%2F%3F%24%2Fi'
          2        SEND_VAL                                                 'api%2Fbooking%2F%3Aff'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $1      
          5      > JMPZ                                                     $1, ->9
    6     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    9     9    >   INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '%2F'
         12        SEND_VAL                                                 'api%2Fbooking%2F%3Aid%2F%3Aosa'
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.64 ms | 939 KiB | 20 Q