3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($val) { $retVal = var_export(empty($val)); printf("%s: %s\n", $val, $retVal); } test(0); test(''); test(null); test(false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/15QbZ
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 0
          2        DO_FCALL                                      0          
    9     3        INIT_FCALL                                               'test'
          4        SEND_VAL                                                 ''
          5        DO_FCALL                                      0          
   10     6        INIT_FCALL                                               'test'
          7        SEND_VAL                                                 null
          8        DO_FCALL                                      0          
   11     9        INIT_FCALL                                               'test'
         10        SEND_VAL                                                 <false>
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/15QbZ
function name:  test
number of ops:  12
compiled vars:  !0 = $val, !1 = $retVal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'var_export'
          2        ISSET_ISEMPTY_CV                                 ~2      !0
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        INIT_FCALL                                               'printf'
          7        SEND_VAL                                                 '%25s%3A+%25s%0A'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    6    11      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.65 ms | 1389 KiB | 21 Q