3v4l.org

run code in 300+ PHP versions simultaneously
<?php $countItems = dbh->query("SELECT count(*) FROM table WHERE ItemID='1' AND User='Jim'")->fetchColumn(); if ($countItems == 0) { echo "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/bZBc6
function name:  (null)
number of ops:  11
compiled vars:  !0 = $countItems
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~1      'dbh'
          1        INIT_METHOD_CALL                                         ~1, 'query'
          2        SEND_VAL_EX                                              'SELECT+count%28%2A%29+FROM+table+WHERE+ItemID%3D%271%27+AND+User%3D%27Jim%27'
          3        DO_FCALL                                      0  $2      
          4        INIT_METHOD_CALL                                         $2, 'fetchColumn'
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !0, $3
    3     7        IS_EQUAL                                                 !0, 0
          8      > JMPZ                                                     ~5, ->10
    4     9    >   ECHO                                                     'Empty'
    5    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.06 ms | 940 KiB | 14 Q