3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intzero = 0; $stringzero = "0"; echo "Intzero: ".print_r(empty($intzero),1)."\n"; echo "Stringzero: ".print_r(empty($stringzero),1)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FIbq4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $intzero, !1 = $stringzero
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, '0'
    5     2        INIT_FCALL                                               'print_r'
          3        ISSET_ISEMPTY_CV                                 ~4      !0
          4        SEND_VAL                                                 ~4
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $5      
          7        CONCAT                                           ~6      'Intzero%3A+', $5
          8        CONCAT                                           ~7      ~6, '%0A'
          9        ECHO                                                     ~7
    6    10        INIT_FCALL                                               'print_r'
         11        ISSET_ISEMPTY_CV                                 ~8      !1
         12        SEND_VAL                                                 ~8
         13        SEND_VAL                                                 1
         14        DO_ICALL                                         $9      
         15        CONCAT                                           ~10     'Stringzero%3A+', $9
         16        CONCAT                                           ~11     ~10, '%0A'
         17        ECHO                                                     ~11
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.49 ms | 1394 KiB | 15 Q