3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.2 ms | 1395 KiB | 19 Q