3v4l.org

run code in 500+ PHP versions simultaneously
<?php $userId = null; is_null($userId) && $userId = 5; var_dump($userId); $carId = null; if (is_null($carId)) { $carId = 5; } var_dump($carId);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/dmHCC
function name:  (null)
number of ops:  16
compiled vars:  !0 = $userId, !1 = $carId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        TYPE_CHECK                                    2  ~3      !0
          2      > JMPZ_EX                                          ~3      ~3, ->5
          3    >   ASSIGN                                           ~4      !0, 5
          4        BOOL                                             ~3      ~4
    6     5    >   INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   10     8        ASSIGN                                                   !1, null
   11     9        TYPE_CHECK                                    2          !1
         10      > JMPZ                                                     ~7, ->12
   12    11    >   ASSIGN                                                   !1, 5
   16    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.61 ms | 2071 KiB | 12 Q