3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "123 Fab Test"; for ($i = 0; $i<10000; $i++) { preg_match('/^(\d+) (\w+) (\w+)$/', $str, $m); list(, $id, $first, $last) = $m; echo $id, $first, $last, PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 3
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 3
Branch analysis from position: 23
Branch analysis from position: 3
filename:       /in/cPGds
function name:  (null)
number of ops:  24
compiled vars:  !0 = $str, !1 = $i, !2 = $m, !3 = $id, !4 = $first, !5 = $last
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '123+Fab+Test'
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->21
    6     3    >   INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5E%28%5Cd%2B%29+%28%5Cw%2B%29+%28%5Cw%2B%29%24%2F'
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !2
          7        DO_ICALL                                                 
    7     8        QM_ASSIGN                                        ~9      !2
          9        FETCH_LIST_R                                     $10     ~9, 1
         10        ASSIGN                                                   !3, $10
         11        FETCH_LIST_R                                     $12     ~9, 2
         12        ASSIGN                                                   !4, $12
         13        FETCH_LIST_R                                     $14     ~9, 3
         14        ASSIGN                                                   !5, $14
         15        FREE                                                     ~9
    8    16        ECHO                                                     !3
         17        ECHO                                                     !4
         18        ECHO                                                     !5
         19        ECHO                                                     '%0A'
    5    20        PRE_INC                                                  !1
         21    >   IS_SMALLER                                               !1, 10000
         22      > JMPNZ                                                    ~17, ->3
    9    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.85 ms | 1395 KiB | 15 Q