3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((bool) ""); // bool(false) var_dump((bool) 1); // bool(true) var_dump((bool) -2); // bool(true) var_dump((bool) "foo"); // bool(true) var_dump((bool) 2.3e5); // bool(true) var_dump((bool) array(12)); // bool(true) var_dump((bool) array()); // bool(false) var_dump((bool) "false"); // bool(true)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5hNJF
function name:  (null)
number of ops:  33
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'var_dump'
         1        MAKE_REF                                         ~0      ''
         2        SEND_VAL                                                 ~0
         3        DO_ICALL                                                 
   4     4        INIT_FCALL                                               'var_dump'
         5        MAKE_REF                                         ~2      1
         6        SEND_VAL                                                 ~2
         7        DO_ICALL                                                 
   5     8        INIT_FCALL                                               'var_dump'
         9        MAKE_REF                                         ~4      -2
        10        SEND_VAL                                                 ~4
        11        DO_ICALL                                                 
   6    12        INIT_FCALL                                               'var_dump'
        13        MAKE_REF                                         ~6      'foo'
        14        SEND_VAL                                                 ~6
        15        DO_ICALL                                                 
   7    16        INIT_FCALL                                               'var_dump'
        17        MAKE_REF                                         ~8      230000
        18        SEND_VAL                                                 ~8
        19        DO_ICALL                                                 
   8    20        INIT_FCALL                                               'var_dump'
        21        MAKE_REF                                         ~10     <array>
        22        SEND_VAL                                                 ~10
        23        DO_ICALL                                                 
   9    24        INIT_FCALL                                               'var_dump'
        25        MAKE_REF                                         ~12     <array>
        26        SEND_VAL                                                 ~12
        27        DO_ICALL                                                 
  10    28        INIT_FCALL                                               'var_dump'
        29        MAKE_REF                                         ~14     'false'
        30        SEND_VAL                                                 ~14
        31        DO_ICALL                                                 
        32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0