3v4l.org

run code in 500+ PHP versions simultaneously
<?php // $e contains the check !$e = checkSomething(); // $e contains the check, // and the condition still passes if (!$e = checkSomething()) { print "Something was wrong!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/OaqKp
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                           'checkSomething'
          1        DO_FCALL                                          0  $1      
          2        ASSIGN                                               ~2      !0, $1
          3        BOOL_NOT                                             ~3      ~2
    8     4        INIT_FCALL_BY_NAME                                           'checkSomething'
          5        DO_FCALL                                          0  $4      
          6        ASSIGN                                               ~5      !0, $4
          7        BOOL_NOT                                             ~6      ~5
          8      > JMPZ                                                         ~6, ->10
    9     9    >   ECHO                                                         'Something+was+wrong%21'
   10    10    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.14 ms | 1483 KiB | 13 Q