3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intzero = 0; $stringzero = "0"; echo "Intzero: ".print_r(empty($intzero))."\n"; echo "Stringzero: ".print_r(empty($stringzero))."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PhpJK
function name:  (null)
number of ops:  17
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        DO_ICALL                                         $5      
          6        CONCAT                                           ~6      'Intzero%3A+', $5
          7        CONCAT                                           ~7      ~6, '%0A'
          8        ECHO                                                     ~7
    6     9        INIT_FCALL                                               'print_r'
         10        ISSET_ISEMPTY_CV                                 ~8      !1
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                         $9      
         13        CONCAT                                           ~10     'Stringzero%3A+', $9
         14        CONCAT                                           ~11     ~10, '%0A'
         15        ECHO                                                     ~11
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.51 ms | 1394 KiB | 15 Q