3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (int) empty(0) . "\n"; echo (int) empty(1) . "\n"; echo (int) empty("") . "\n"; echo (int) empty("hello") . "\n"; echo (int) empty(null) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8bqSf
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          4  ~0      <true>
          1        CONCAT                                           ~1      ~0, '%0A'
          2        ECHO                                                     ~1
    4     3        CAST                                          4  ~2      <false>
          4        CONCAT                                           ~3      ~2, '%0A'
          5        ECHO                                                     ~3
    5     6        CAST                                          4  ~4      <true>
          7        CONCAT                                           ~5      ~4, '%0A'
          8        ECHO                                                     ~5
    6     9        CAST                                          4  ~6      <false>
         10        CONCAT                                           ~7      ~6, '%0A'
         11        ECHO                                                     ~7
    7    12        CAST                                          4  ~8      <true>
         13        CONCAT                                           ~9      ~8, '%0A'
         14        ECHO                                                     ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.5 ms | 1393 KiB | 13 Q