3v4l.org

run code in 300+ PHP versions simultaneously
<?php $smcFunc = [ 'db_num_rows' => 'trim' ]; $request = 'not empty'; if (!empty($smcFunc['db_num_rows']($request))) echo 'not empty!';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/NUcUo
function name:  (null)
number of ops:  11
compiled vars:  !0 = $smcFunc, !1 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, 'not+empty'
    8     2        FETCH_DIM_R                                      ~4      !0, 'db_num_rows'
          3        INIT_DYNAMIC_CALL                                        ~4
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $5      
          6        BOOL_NOT                                         ~6      $5
          7        BOOL_NOT                                         ~7      ~6
          8      > JMPZ                                                     ~7, ->10
    9     9    >   ECHO                                                     'not+empty%21'
         10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.95 ms | 1392 KiB | 13 Q