3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array("", NULL, 0, 1, "0", "1", true, false, new stdClass(), array(1), array()); foreach($test as $t) { echo var_export($t, true) . "\t !!(x)=\t" . var_export((!!$t), true) . "\t (x==true)=\t" . var_export(($t==true),true). "\t (x===true)=\t" . var_export(($t===true),true). "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 45
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 45
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
filename:       /in/Eq4jB
function name:  (null)
number of ops:  47
compiled vars:  !0 = $test, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~2      ''
          1        ADD_ARRAY_ELEMENT                                ~2      null
          2        ADD_ARRAY_ELEMENT                                ~2      0
          3        ADD_ARRAY_ELEMENT                                ~2      1
          4        ADD_ARRAY_ELEMENT                                ~2      '0'
          5        ADD_ARRAY_ELEMENT                                ~2      '1'
          6        ADD_ARRAY_ELEMENT                                ~2      <true>
          7        ADD_ARRAY_ELEMENT                                ~2      <false>
          8        NEW                                              $3      'stdClass'
          9        DO_FCALL                                      0          
         10        ADD_ARRAY_ELEMENT                                ~2      $3
         11        ADD_ARRAY_ELEMENT                                ~2      <array>
         12        ADD_ARRAY_ELEMENT                                ~2      <array>
         13        ASSIGN                                                   !0, ~2
    4    14      > FE_RESET_R                                       $6      !0, ->45
         15    > > FE_FETCH_R                                               $6, !1, ->45
    5    16    >   INIT_FCALL                                               'var_export'
         17        SEND_VAR                                                 !1
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $7      
         20        CONCAT                                           ~8      $7, '%09+%21%21%28x%29%3D%09'
         21        INIT_FCALL                                               'var_export'
         22        BOOL_NOT                                         ~9      !1
         23        BOOL_NOT                                         ~10     ~9
         24        SEND_VAL                                                 ~10
         25        SEND_VAL                                                 <true>
         26        DO_ICALL                                         $11     
         27        CONCAT                                           ~12     ~8, $11
         28        CONCAT                                           ~13     ~12, '%09+%28x%3D%3Dtrue%29%3D%09'
         29        INIT_FCALL                                               'var_export'
         30        BOOL                                             ~14     !1
         31        SEND_VAL                                                 ~14
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $15     
         34        CONCAT                                           ~16     ~13, $15
         35        CONCAT                                           ~17     ~16, '%09+%28x%3D%3D%3Dtrue%29%3D%09'
         36        INIT_FCALL                                               'var_export'
         37        TYPE_CHECK                                    8  ~18     !1
         38        SEND_VAL                                                 ~18
         39        SEND_VAL                                                 <true>
         40        DO_ICALL                                         $19     
         41        CONCAT                                           ~20     ~17, $19
         42        CONCAT                                           ~21     ~20, '%0A'
         43        ECHO                                                     ~21
    4    44      > JMP                                                      ->15
         45    >   FE_FREE                                                  $6
    6    46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.26 ms | 1392 KiB | 15 Q