3v4l.org

run code in 300+ PHP versions simultaneously
<?php $config = []; $foo = is_callable($config['callable']); $config['callable'] = 'nonexistent_callable'; $bar = is_callable($config['callable']); $config['callable'] = 'strtolower'; $baz = is_callable($config['callable']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iTlfC
function name:  (null)
number of ops:  21
compiled vars:  !0 = $config, !1 = $foo, !2 = $bar, !3 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'is_callable'
          2        FETCH_DIM_R                                      ~5      !0, 'callable'
          3        SEND_VAL                                                 ~5
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    4     6        ASSIGN_DIM                                               !0, 'callable'
          7        OP_DATA                                                  'nonexistent_callable'
    5     8        INIT_FCALL                                               'is_callable'
          9        FETCH_DIM_R                                      ~9      !0, 'callable'
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !2, $10
    6    13        ASSIGN_DIM                                               !0, 'callable'
         14        OP_DATA                                                  'strtolower'
    7    15        INIT_FCALL                                               'is_callable'
         16        FETCH_DIM_R                                      ~13     !0, 'callable'
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                         $14     
         19        ASSIGN                                                   !3, $14
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.58 ms | 997 KiB | 14 Q