3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "Cathryn"; $test1 = $value != 0; $test2 = $value != ''; var_dump($test1); var_dump($test2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L8rt1
function name:  (null)
number of ops:  12
compiled vars:  !0 = $value, !1 = $test1, !2 = $test2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Cathryn'
    5     1        IS_NOT_EQUAL                                     ~4      !0, 0
          2        ASSIGN                                                   !1, ~4
    6     3        IS_NOT_EQUAL                                     ~6      !0, ''
          4        ASSIGN                                                   !2, ~6
    8     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1385 KiB | 15 Q