3v4l.org

run code in 300+ PHP versions simultaneously
<?php $callable = 'Foo::fooBar'; list($controller, $method) = is_array($callable) ? $callable : explode($controller, '::'); var_dump($controller, $method);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kl1pu
function name:  (null)
number of ops:  20
compiled vars:  !0 = $callable, !1 = $controller, !2 = $method
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Foo%3A%3AfooBar'
    5     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~4, ->5
          3    >   QM_ASSIGN                                        ~5      !0
          4      > JMP                                                      ->10
          5    >   INIT_FCALL                                               'explode'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 '%3A%3A'
          8        DO_ICALL                                         $6      
          9        QM_ASSIGN                                        ~5      $6
         10    >   FETCH_LIST_R                                     $7      ~5, 0
         11        ASSIGN                                                   !1, $7
         12        FETCH_LIST_R                                     $9      ~5, 1
         13        ASSIGN                                                   !2, $9
         14        FREE                                                     ~5
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.29 ms | 1395 KiB | 17 Q